RedundantCollectionOperationHandler (PsiMethodCallExpression call) { if(!PsiUtil.isLanguageLevel7OrHigher(call)) return null; PsiMethodCallExpression qualifierCall = MethodCallUtils.getQualifierMethodCall(call); if (!SINGLETON.test(qualifierCall)) return null; return new SingletonContainsHandler(); }