private static boolean isFit(@NotNull String text, @NotNull FontMetrics metrics, int width) {
    return text.isEmpty() || metrics.stringWidth(text) <= width;
  }
private static boolean isFit(@NotNull String text, @NotNull FontMetrics metrics, int width)