private int getTextAlignmentShiftForInlayIcon(Icon icon, Inlay<?> inlay) {
    return Math.min(getTextAlignmentShift(icon), inlay.getHeightInPixels() - icon.getIconHeight());
  }
private int getTextAlignmentShiftForInlayIcon(Icon icon, Inlay<?> inlay)