boolean (GrExpression expression) { final PsiType type = expression.getType(); if (PsiTypes.voidType().equals(type)) return false; //statement if (type == PsiTypes.nullType()) return !org.jetbrains.plugins.groovy.lang.psi.util.PsiUtil.isVoidMethodCall(expression); return true; }