@Override
      public void customizeCellRenderer(
        @NotNull JTree tree,
        Object value,
        boolean selected,
        boolean expanded,
        boolean leaf,
        int row,
        boolean hasFocus
      ) {
        setIcon(IconManager.getInstance().getPlatformIcon(PlatformIcons.Package));
        if (value instanceof DefaultMutableTreeNode node) {
          Object object = node.getUserObject();
          if (object instanceof PsiPackage pkg) {
            String name = pkg.getName();
            if (name != null && !name.isEmpty()) {
              append(name);
            }
            else {
              append(IdeCoreBundle.message("node.default"));
            }
          }
        }
      }
@Override
      public void customizeCellRenderer(
        @NotNull JTree tree,
        Object value,
        boolean selected,
        boolean expanded,
        boolean leaf,
        int row,
        boolean hasFocus
      )