void (@NotNull PsiElement location, @InspectionMessage @NotNull String description, @NotNull LocalQuickFix @Nullable [] fixes, @NotNull ProblemHighlightType highlightType) { if (highlightType == ProblemHighlightType.GENERIC_ERROR) { if (fixes != null && fixes.length > 0 && location.isPhysical()) { final InspectionManager manager = InspectionManager.getInstance(location.getProject()); final ProblemDescriptor descriptor = manager.createProblemDescriptor(location, description, fixes, highlightType, fixes.length == 1, false); toApply.add(new ProblemFix(fixes[0], descriptor)); } } }