CheckBoxListModelEditor<T> (final @NotNull Function<? super T, ? extends T> consumer) { final Runnable action = () -> { T item = getSelectedItem(); if (item != null) { T newItem = consumer.fun(item); if (newItem != null) { list.updateItem(item, newItem, StringUtil.notNullize(toNameConverter.fun(newItem))); } IdeFocusManager.getGlobalInstance().doWhenFocusSettlesDown(() -> IdeFocusManager.getGlobalInstance().requestFocus(list, true)); } }; toolbarDecorator.setEditAction(new AnActionButtonRunnable() { @Override public void run(AnActionButton button) { action.run(); } }); EditSourceOnDoubleClickHandler.install(list, action); return this; }