FolderWrapper (@NotNull Project project, @NotNull ExecutorProvider executorProvider, @Nullable RunnerAndConfigurationSettings selectedConfiguration, @NotNull String folderName, @NotNull List<? extends RunnerAndConfigurationSettings> configurations) { boolean isSelected = selectedConfiguration != null && configurations.contains(selectedConfiguration); String value = folderName; if (isSelected) { value += " (mnemonic is to \"" + selectedConfiguration.getName() + "\")"; } FolderWrapper result = new FolderWrapper(project, executorProvider, value, configurations); if (isSelected) { result.setMnemonic(1); } return result; }