ItemWrapper (@NotNull Project project, @NotNull RunnerAndConfigurationSettings configuration, @Nullable RunnerAndConfigurationSettings selectedConfiguration, @NotNull Map<RunnerAndConfigurationSettings, ItemWrapper<?>> wrappedExisting) { ItemWrapper wrapped = ItemWrapper.wrap(project, configuration); if (configuration == selectedConfiguration) { wrapped.setMnemonic(1); } wrappedExisting.put(configuration, wrapped); return wrapped; }