void (AnActionButton button) { String selectedValue = tagsList.getSelectedValue(); if (selectedValue != null) { Arrays.stream(getSelection()) .forEach(virtualFile -> imageTagManager.removeTag(selectedValue, virtualFile)); } updateTagsPreviewModel(); }