RedundantEmptyIteratorHandler (PsiMethodCallExpression call) { if (!PsiUtil.isLanguageLevel7OrHigher(call)) return null; PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(call.getMethodExpression().getQualifierExpression()); if (!EMPTY_COLLECTION.matches(qualifier) && !ConstructionUtils.isEmptyCollectionInitializer(qualifier)) return null; return new RedundantEmptyIteratorHandler(); }