void (ToolbarDecorator decorator) { decorator.setRemoveAction((button) -> { SpellcheckerActionStatistics.REMOVE_FROM_ACCEPTED_WORDS.log(manager.getProject()); ListUtil.removeSelectedItems(myList); }); }