boolean (GroovyPsiElement statement) { if (stmtLevel && (statement instanceof GrMethod || statement instanceof GrTypeDefinition)) { return false; } if (statement instanceof GrVariableDeclaration && !stmtLevel) { return false; } return true; }