public static int getSpaceWidth(@JdkConstants.FontStyle int fontType, @NotNull Editor editor) {
    int width = charWidth(' ', fontType, editor);
    return width > 0 ? width : 1;
  }
public static int getSpaceWidth(@JdkConstants.FontStyle int fontType, @NotNull Editor editor)