RunAnythingGroup (@NotNull RunAnythingProvider provider) { String title = provider.getCompletionGroupTitle(); if (title == null) { return null; } if (RunAnythingGeneralGroup.getGroupTitle().equals(title)) { return new RunAnythingGeneralGroup(); } //noinspection unchecked return new RunAnythingCompletionGroup(provider); }