boolean (@NotNull String directoryUrl) { dropCaches(); Predicate<VirtualFilePointer> filter = ptr -> FileUtil.pathsEqual(ptr.getUrl(), directoryUrl); boolean removed0 = myList.removeIf(filter); boolean removed1 = myJarDirectories.removeIf(filter); boolean removed2 = myJarRecursiveDirectories.removeIf(filter); return removed0 || removed1 || removed2; }