private void paintBorderEffect(EditorHighlighter highlighter) {
      HighlighterIterator it = highlighter.createIterator(myStartOffset);
      while (!it.atEnd() && it.getStart() < myEndOffset) {
        TextAttributes attributes = it.getTextAttributes();
        EffectDescriptor borderDescriptor = getBorderDescriptor(attributes);
        if (borderDescriptor != null) {
          paintBorderEffect(it.getStart(), it.getEnd(), borderDescriptor);
        }
        it.advance();
      }
    }
private void paintBorderEffect(EditorHighlighter highlighter)