@CheckForNull
    public static String getFirstIdent(@Nonnull final DetailAST pAst)
    {
        String result = null;
        DetailAST ast = pAst.findFirstToken(TokenTypes.IDENT);
        if (ast != null) {
            result = ast.getText();
        }
        return result;
    }
@ CheckForNull public static String getFirstIdent ( @ Nonnull final DetailAST pAst ) { String result = null ; DetailAST ast = pAst . findFirstToken ( TokenTypes . IDENT ) ; if ( ast != null ) { result = ast . getText ( ) ; } return result ; }
Determine the text of the first direct IDENT child node.

@param pAst an AST
@return the first encountered IDENT text, or <code>null</code> if none was found