private void addToLocalIndex(@NotNull String groupId, @NotNull String artifactId, @NotNull String version) {
    MavenId mavenId = new MavenId(groupId, artifactId, version);
    MavenRepositoryInfo localRepo = MavenIndexUtils.getLocalRepository(myProject);
    if (localRepo == null) return;
    Path artifactPath = MavenUtil.getArtifactPath(Path.of(localRepo.getUrl()), mavenId, "jar", null);
    if (artifactPath != null && artifactPath.toFile().exists()) {
      MavenIndicesManager.getInstance(myProject).scheduleArtifactIndexing(mavenId, artifactPath.toFile(), localRepo.getUrl());
    }
  }
private void addToLocalIndex(@NotNull String groupId, @NotNull String artifactId, @NotNull String version)