private void registerScope(final int offsetStart, final int offsetEnd, final int caretShift) {
      RangeMarker marker = myEditor.getDocument().createRangeMarker(offsetStart, offsetEnd);
      marker.setGreedyToLeft(true);
      marker.setGreedyToRight(true);
      if (caretShift > 1) marker.putUserData(CARET_SHIFT, caretShift);
      getCurrentScopes(true).add(marker);
    }
private void registerScope(final int offsetStart, final int offsetEnd, final int caretShift)