@Override
    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
      final EditorTextField editorTextField = ComponentUtil.getParentOfType((Class<? extends EditorTextField>)EditorTextField.class, c);
      if (editorTextField == null) {
        return;
      }
      DarculaUIUtil.Outline object = DarculaUIUtil.getOutline(editorTextField);
      if (DarculaUIUtil.isWarningOrError(object)) {
        myErrorBorder.paintBorder(c, g, x, y, width, height);
      }
    }
@Override
    public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)