void (@NotNull AnActionEvent e) { Project project = e.getData(CommonDataKeys.PROJECT); final Pair<ExcludesConfiguration, VirtualFile> pair = getExcludedConfigurationAndFile(e, project); if (pair == null) return; final ExcludeEntryDescription description = new ExcludeEntryDescription(pair.getSecond(), false, true, project); pair.getFirst().addExcludeEntryDescription(description); }