boolean (PsiElement expr) { PsiElement parent = expr.getParent(); return !(parent instanceof GroovyFile) && (inspectClosures || !(parent instanceof GrClosableBlock)) && PsiUtil.isExpressionUsed(expr); }