RepositoryDiff<MavenIndex> (@NotNull MavenRepositoryInfo localRepo, @NotNull RepositoryDiffContext context, @Nullable MavenIndex currentLocalIndex) { if (currentLocalIndex != null && FileUtil.pathsEqual(localRepo.getUrl(), currentLocalIndex.getRepositoryPathOrUrl())) { return new RepositoryDiff<>(currentLocalIndex, null); } MavenIndex index = createMavenIndex(LOCAL_REPOSITORY_ID, localRepo.getUrl(), IndexKind.LOCAL); return new RepositoryDiff<>(index, currentLocalIndex); }