IntentionGroup (@NotNull IntentionActionWithTextCaching action) { if (myErrorFixes.contains(action)) { return IntentionGroup.ERROR; } if (myInspectionFixes.contains(action)) { return IntentionGroup.INSPECTION; } if (myNotifications.contains(action)) { return IntentionGroup.NOTIFICATION; } if (myGutters.contains(action)) { return IntentionGroup.GUTTER; } if (action.getAction() instanceof EmptyIntentionAction) { return IntentionGroup.EMPTY_ACTION; } if (IntentionActionDelegate.unwrap(action.getAction()) instanceof AdvertisementAction) { return IntentionGroup.ADVERTISEMENT; } return IntentionGroup.OTHER; }