boolean (final ASTNode child) { if (child.getElementType() == JavaElementType.BLOCK_STATEMENT) return false; if (!(child.getPsi() instanceof PsiStatement)) return false; return isStatement(child, child.getTreeParent()); }