boolean (@Nullable MavenId mavenId, @NotNull File artifactFile) { if (myMavenIndices.isNotInit()) return false; try { MavenIndex localIndex = myMavenIndices.getIndexHolder().getLocalIndex(); if (localIndex == null) { return false; } if (mavenId != null) { if (mavenId.getGroupId() == null || mavenId.getArtifactId() == null || mavenId.getVersion() == null) { return false; } if (localIndex.hasVersion(mavenId.getGroupId(), mavenId.getArtifactId(), mavenId.getVersion())) return false; } AppExecutorUtil.getAppExecutorService().execute(() -> { myIndexFixer.fixIndex(artifactFile); }); } catch (AlreadyDisposedException ignore) { return false; } return true; }