private void paint() {
      if (myEditor.getContentComponent().isOpaque()) {
        myGraphics.setColor(myBackgroundColor);
        myGraphics.fillRect(myClip.x, myClip.y, myClip.width, myClip.height);
      }

      myGraphics.translate(0, -myYShift);

      if (paintPlaceholderText()) {
        paintCaret();
        return;
      }

      paintCustomRenderers(myDocMarkup);
      paintCustomRenderers(myEditorMarkup);
      paintBackground();
      paintRightMargin();
      paintCustomRenderers(myAfterBackgroundCustomHighlighters);
      paintLineMarkersSeparators(myDocMarkup);
      paintLineMarkersSeparators(myEditorMarkup);
      paintTextWithEffects();
      paintHighlightersAfterEndOfLine(myDocMarkup);
      paintHighlightersAfterEndOfLine(myEditorMarkup);
      paintBorderEffect(myEditor.getHighlighter());
      paintBorderEffect(myDocMarkup);
      paintBorderEffect(myEditorMarkup);
      paintCustomRenderers(myForegroundCustomHighlighters);
      paintBlockInlays();
      paintCaret();
      paintComposedTextDecoration();

      myGraphics.translate(0, myYShift);
    }
private void paint()