private static @NotNull Font loadFont() {
    @NonNls String fontPath = "/fonts/Roboto-Light.ttf";
    URL url = AppUIUtil.class.getResource(fontPath);
    if (url == null) {
      Logger.getInstance(AppUIUtil.class).warn("Resource missing: " + fontPath);
    }
    else {
      try (InputStream is = url.openStream()) {
        return Font.createFont(Font.TRUETYPE_FONT, is);
      }
      catch (Throwable t) {
        Logger.getInstance(AppUIUtil.class).warn("Cannot load font: " + url, t);
      }
    }
    return StartupUiUtil.getLabelFont();
  }
private static @NotNull Font loadFont()