boolean contains(@NotNull String mavenCoords) {
    if (mavenLibraries.contains(mavenCoords)) return true;
    if (jpsNameIndex.isEmpty()) return false;

    String libraryName = getLibraryName(mavenCoords);
    if (libraryName == null) return false;

    String existingJpsLibraryName = jpsNameIndex.get(libraryName);
    if (existingJpsLibraryName == null) return false;

    return matchLibraryName(existingJpsLibraryName, libraryName);
  }
boolean contains(@NotNull String mavenCoords)