docs: public synchronized boolean remove(Layer layer, boolean redraw) {
          checkIsNull(layer);
          if (this.layersList.remove(layer)) {
              layer.unassign();
              if (redraw) {
                  this.redrawer.redrawLayers();
              }
              return true;
          }
          return false;
      }