docs: public static Provider getCurrentProvider(boolean useSwingEventQueue) {
          Provider provider;
          if (Platform.isX11()) {
              provider = new X11Provider();
          } else if (Platform.isWindows()) {
              provider = new WindowsProvider();
          } else if (Platform.isMac()) {
              provider = new CarbonProvider();
          } else {
              LOGGER.warn("No suitable provider for " + System.getProperty("os.name"));
              return null;
          }
          provider.setUseSwingEventQueue(useSwingEventQueue);
          provider.init();
          return provider;
  
      }