void (ProblemReporter reporter, PsiExpression top, PsiExpression expression, @InspectionMessage String message, boolean alwaysNull) { PsiField field = getAssignedField(top); if (field != null) { List<LocalQuickFix> fixes = createNPEFixes(expression, top, reporter.isOnTheFly(), alwaysNull); fixes.add(AddAnnotationPsiFix.createAddNullableFix(field)); reporter.registerProblem(expression, message, fixes.toArray(LocalQuickFix.EMPTY_ARRAY)); } }