boolean (@NotNull String url) { for (JpsExcludeFolder folder : myExcludeFolders) { if (folder.getUrl().equals(url)) { myExcludeFolders.remove(folder); myModule.getExcludeRootsList().removeUrl(url); Disposer.dispose(folder); return true; } } return false; }