MavenCoords (VirtualFile jar) { String jarName = jar.getNameWithoutExtension(); int index = jarName.lastIndexOf('-'); if (index == -1) return null; String version = jarName.substring(index + 1); String artifactId = jarName.substring(0, index); return new MavenCoords(artifactId, version); }