docs: public synchronized void clear(boolean redraw) {
          for (Layer layer : this.layersList) {
              layer.unassign();
          }
          this.layersList.clear();
          if (redraw) {
              this.redrawer.redrawLayers();
          }
      }