code: protected Component newRemoveAllComponent() {
          return new PaletteButton("removeAllButton") {
              private static final long serialVersionUID = 1L;
  
              protected void onComponentTag(ComponentTag tag) {
                  super.onComponentTag(tag);
                  tag.getAttributes().put("onclick", getRemoveAllOnClickJS());
              }
          };
      }
docs: factory method for the removeAll component
  
  @return removeAll component