@Override
    public void customizeCellRenderer(@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) {
      Object userObject = ((DefaultMutableTreeNode)value).getUserObject();
      if (userObject instanceof MyUserObject node) {
        setIcon(ModuleType.get(node.myModule).getIcon());
        append(node.myModule.getName(), node.myInCycle ? SimpleTextAttributes.ERROR_ATTRIBUTES : SimpleTextAttributes.REGULAR_ATTRIBUTES);
      }
      else if (userObject != null) {
        @NlsSafe String userObjectString = userObject.toString();
        append(userObjectString, SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES);
      }
    }
@Override
    public void customizeCellRenderer(@NotNull JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)