boolean (PsiMethodCallExpression methodCall) { if (ExpressionUtil.isEffectivelyUnqualified(methodCall.getMethodExpression())) return false; PsiExpression[] expressions = methodCall.getArgumentList().getExpressions(); if(expressions.length != 1) return false; PsiExpression arg = expressions[0]; if(!(arg instanceof PsiLambdaExpression)) return false; PsiElement body = ((PsiLambdaExpression)arg).getBody(); return body instanceof PsiExpression && BoolUtils.isNegation((PsiExpression)body); }