void (@NotNull final AnActionEvent e, final boolean isSelected) { final VirtualFile[] selectedFiles = getSelectedFiles(); assert selectedFiles.length != 0; ContentEntryEditor contentEntryEditor = myEntryTreeEditor.getContentEntryEditor(); if (contentEntryEditor == null) return; for (VirtualFile selectedFile : selectedFiles) { if (isSelected) { if (!contentEntryEditor.isExcludedOrUnderExcludedDirectory(selectedFile)) { // not excluded yet contentEntryEditor.addExcludeFolder(selectedFile); } } else { contentEntryEditor.removeExcludeFolder(selectedFile.getUrl()); } } }