void (@NotNull HighlightInfo infoAtCursor, @NotNull IntentionsInfo intentions, @NotNull List<? extends HighlightInfo.IntentionActionDescriptor> fixes) { if (intentions.getOffset() < 0) { intentions.setOffset(infoAtCursor.getActualStartOffset()); } boolean isError = infoAtCursor.getSeverity() == HighlightSeverity.ERROR; for (HighlightInfo.IntentionActionDescriptor fix : fixes) { if (fix.isError() && isError) { intentions.errorFixesToShow.add(fix); } else if (fix.isInformation()) { intentions.intentionsToShow.add(fix); } else { intentions.inspectionFixesToShow.add(fix); } } }