boolean (@NotNull RunAnythingGroup group) { Boolean visible = mySettings.myKeys.get(group.getTitle()); if (visible != null) { return visible; } if (group instanceof RunAnythingCompletionGroup) { String name = ((RunAnythingCompletionGroup<?, ?>)group).getProvider().getClass().getCanonicalName(); Boolean providerValue = mySettings.myKeys.get(name); if (providerValue != null) { return providerValue; } } return true; }