void (ProblemReporter reporter, @InspectionMessage String message, PsiMethodCallExpression callExpression, boolean alwaysNull) { PsiReferenceExpression methodExpression = callExpression.getMethodExpression(); List<LocalQuickFix> fixes = createNPEFixes(methodExpression.getQualifierExpression(), callExpression, reporter.isOnTheFly(), alwaysNull); if (!alwaysNull) { ContainerUtil.addIfNotNull(fixes, ReplaceWithObjectsEqualsFix.createFix(callExpression, methodExpression)); } PsiElement toHighlight = getElementToHighlight(callExpression); reporter.registerProblem(toHighlight, message, fixes.toArray(LocalQuickFix.EMPTY_ARRAY)); }