PopupStep (final ErrorWithFix selectedValue, final boolean finalChoice) { if (selectedValue.second instanceof PopupQuickFix) { return ((PopupQuickFix) selectedValue.second).getPopupStep(); } if (finalChoice || !myShowSuppresses) { return doFinalStep( () -> CommandProcessor.getInstance().executeCommand(myEditor.getProject(), () -> selectedValue.second.run(), selectedValue.second.getName(), null)); } if (selectedValue.first.getInspectionId() != null && selectedValue.second.getComponent() != null && !(selectedValue.second instanceof SuppressFix)) { ArrayList<ErrorWithFix> suppressList = new ArrayList<>(); buildSuppressFixes(selectedValue.first, suppressList, false); return new QuickFixPopupStep(suppressList, false); } return FINAL_CHOICE; }