GrStatement () { List<GrStatement> statements = new ArrayList<>(); for (PsiElement cur = getFirstChild(); cur != null; cur = cur.getNextSibling()) { if (cur instanceof GrStatement) statements.add((GrStatement)cur); } if (getCondition() == null && !statements.isEmpty()) return statements.get(0); if (statements.size() > 1) return statements.get(1); return null; }