protected void registerInTree(int start, int end, boolean greedyToLeft, boolean greedyToRight, int layer) {
    getDocument().registerRangeMarker(this, start, end, greedyToLeft, greedyToRight, layer);
  }
protected void registerInTree(int start, int end, boolean greedyToLeft, boolean greedyToRight, int layer)