boolean (@NotNull PsiElement element) { if (!GroovyManyStatementsSurrounder.isStatement(element) || !(element instanceof GrExpression)) return false; PsiType type = ((GrExpression)element).getType(); return PsiTypes.booleanType().equals(type) || PsiTypes.booleanType().equals(PsiPrimitiveType.getUnboxedType(type)); }