ProblemDescriptor (@NotNull PsiFile file, @NotNull HighlightInfo info) { List<LocalQuickFix> quickFixes = new ArrayList<>(); info.findRegisteredQuickFix((descriptor, range) -> { IntentionAction intention = descriptor.getAction(); LocalQuickFix fix = intention instanceof LocalQuickFix ? (LocalQuickFix)intention : intention instanceof LocalQuickFixAsIntentionAdapter ? ((LocalQuickFixAsIntentionAdapter)intention).getFix() : null; if (fix != null) { quickFixes.add(fix); } return null; }); return convertToDescriptor(file, info.getSeverity(), info.getStartOffset(), info.getEndOffset(), info.getDescription(), info.isAfterEndOfLine(), quickFixes.toArray(LocalQuickFix.EMPTY_ARRAY)); }