ASTNode (@Nullable ASTNode element) { if (!is(element, BASIC_IF_STATEMENT)) { return null; } ASTNode elseKeyword = getElseElement(element); if (elseKeyword == null) return null; for (ASTNode child = elseKeyword.getTreeNext(); child != null; child = child.getTreeNext()) { if (is(child, STATEMENT_SET)) return child; } return null; }