String (@Nullable @NonNls String s, ConvertContext context) { if (s == null) return null; MavenId id = MavenArtifactCoordinatesHelper.getId(context); Project contextProject = context.getProject(); MavenIndicesManager manager = MavenIndicesManager.getInstance(contextProject); ConverterStrategy strategy = selectStrategy(context); boolean isValid = strategy.isValid(id, manager, context); if (!isValid) { MavenIndex localIndex = manager.getIndex().getLocalIndex(); if (localIndex == null) return null; Path artifactPath = MavenUtil.getArtifactPath(Path.of(localIndex.getRepositoryPathOrUrl()), id, "pom", null); if (artifactPath != null && artifactPath.toFile().exists()) { MavenIndicesManager.getInstance(contextProject).scheduleArtifactIndexing(id, artifactPath.toFile()); return s; } return null; } return s; }