String (@NotNull String jarUrl) { File jarFile = new File(PathUtil.getLocalPath(VfsUtilCore.urlToPath(jarUrl))); if (jarFile.getParentFile() == null) return null; File artifactDir = jarFile.getParentFile().getParentFile(); if (artifactDir == null) return null; File localRepoRoot = JarRepositoryManager.getLocalRepositoryPath(); if (!FileUtil.isAncestor(localRepoRoot, artifactDir, true)) return null; String relativePath = FileUtil.getRelativePath(localRepoRoot, artifactDir.getParentFile()); if (relativePath == null) return null; return relativePath.replace(File.separatorChar, '.') + ":" + artifactDir.getName(); }