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