RepositoryLocation (@NotNull AbstractVcs vcs, @NotNull FilePath filePath, boolean silent) { Couple<String> key = Couple.of(vcs.getName(), filePath.getPath()); RepositoryLocation location = myMap.get(key); if (location == null) { location = getLocationUnderProgress(vcs, filePath, silent); myMap.put(key, location); } return location; }