boolean (String groupId, String artifactId, final String version) { if (isBroken) return false; final String groupWithArtifactWithVersion = groupId + ":" + artifactId + ':' + version; String groupWithArtifact = groupWithArtifactWithVersion.substring(0, groupWithArtifactWithVersion.length() - version.length() - 1); IndexData indexData = myData; return doIndexTask(() -> notNullize(indexData.groupWithArtifactToVersionMap.get(groupWithArtifact)).contains(version), false); }