void (@NotNull PsiElement elt, @NotNull HighlightInfo info, TextRange range, @Nullable ProblemGroup problemGroup, @NotNull InspectionManager manager, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor, @NotNull GlobalInspectionContext globalContext) { List<LocalQuickFix> fixes = new ArrayList<>(); info.findRegisteredQuickFix((descriptor, fixRange) -> { if (descriptor.getAction() instanceof LocalQuickFix) { fixes.add((LocalQuickFix)descriptor.getAction()); } return null; }); ProblemDescriptor descriptor = manager.createProblemDescriptor(elt, range, createInspectionMessage(StringUtil.notNullize(info.getDescription())), HighlightInfo.convertType(info.type), false, fixes.isEmpty() ? null : fixes.toArray(LocalQuickFix.EMPTY_ARRAY)); descriptor.setProblemGroup(problemGroup); problemDescriptionsProcessor.addProblemElement( GlobalInspectionContextUtil.retrieveRefElement(elt, globalContext), descriptor ); }