private @Nullable String getMyLevel(LibraryFilesPackagingElementEntity entity) {

    LibraryId library = entity.getLibrary();
    String level = null;
    if (library != null) {
      level = library.getTableId().getLevel();
      if (!Objects.equals(level, myLevel)) {
        myLevel = level;
      }
    }
    else {
      if (myLevel != null) {
        myLevel = null;
      }
    }
    return level;
  }
private @Nullable String getMyLevel(LibraryFilesPackagingElementEntity entity)