void (@NotNull PsiExpression iterable, @NotNull BulkMethodInfo info, @NotNull PsiReferenceExpression methodExpression) { PsiExpression qualifier = PsiUtil.skipParenthesizedExprDown(ExpressionUtils.getEffectiveQualifier(methodExpression)); if (qualifier instanceof PsiQualifiedExpression) { PsiMethod method = PsiTreeUtil.getParentOfType(iterable, PsiMethod.class); // Likely we are inside of the bulk method implementation if (method != null && method.getName().equals(info.getBulkName())) return; } if (isSupportedQualifier(qualifier) && info.isSupportedIterable(qualifier, iterable, USE_ARRAYS_AS_LIST)) { holder.registerProblem(methodExpression, JavaBundle.message("inspection.replace.with.bulk.message", info.getReplacementName()), new UseBulkOperationFix(info)); } }