boolean (@NotNull FilePath file) { if (myMap.isEmpty()) return false; FilePath parent = file; while (parent != null) { if (myMap.contains(parent)) return true; parent = parent.getParentPath(); } return false; }