docs: public synchronized Layer remove(int index, boolean redraw) {
          Layer layer = this.layersList.remove(index);
          layer.unassign();
          if (redraw) {
              this.redrawer.redrawLayers();
          }
          return layer;
      }