public boolean hasArtifact(@Nullable String groupId, @Nullable String artifactId) {
    Map<String, List<MavenArtifact>> groupMap = myData.get(groupId);
    if (groupMap == null) return false;

    return groupMap.containsKey(artifactId);
  }
public boolean hasArtifact(@Nullable String groupId, @Nullable String artifactId)