void (@NotNull PsiReference reference, @InspectionMessage String descriptionTemplate, ProblemHighlightType highlightType) { LocalQuickFix[] fixes = null; if (reference instanceof LocalQuickFixProvider) { fixes = ((LocalQuickFixProvider)reference).getQuickFixes(); } registerProblemForReference(reference, highlightType, descriptionTemplate, fixes); }