void (@NotNull Url url, boolean under) { for (Iterator<JpsSourceFolder> iterator = myJpsSourceFolders.iterator(); iterator.hasNext(); ) { JpsSourceFolder eachFolder = iterator.next(); String ancestor = under ? url.getUrl() : eachFolder.getUrl(); String child = under ? eachFolder.getUrl() : url.getUrl(); if (VfsUtilCore.isEqualOrAncestor(ancestor, child)) { iterator.remove(); Disposer.dispose(eachFolder); isJpsSourceFoldersChanged = true; } } }