@Override
  public LibraryType<?> getType() {
    final LibraryKind kind = myLibrary.getKind();
    if (kind != null) {
      return LibraryType.findByKind(kind);
    }
    return detectType();
  }
@Override
  public LibraryType<?> getType()