boolean (@NotNull VcsDirectoryMapping mapping) { if (mapping.isDefaultMapping()) return false; return exists(myVcsManager.getDirectoryMappings(), it -> { return Objects.equals(mapping.getDirectory(), it.getDirectory()); }); }