List<String> (Artifact artifact) { List<String> res = new ArrayList<>(); Set<MavenId> ids = myWorkspaceMap.getAvailableIdsForArtifactId(artifact.getArtifactId()); for (MavenId id : ids) { if (Objects.equals(id.getGroupId(), artifact.getGroupId())) { String version = id.getVersion(); if (version != null) { res.add(version); } } } return res; }