private static @Nullable Notifier getPlatformNotifier() {
    if (!GraphicsUtil.isRemoteEnvironment()) {
      try {
        if (SystemInfo.isMac) {
          return MacOsNotifications.getInstance();
        }
        else if (SystemInfo.isUnix) {
          return LibNotifyWrapper.getInstance();
        }
        else if (SystemInfo.isWin10OrNewer) {
          return SystemTrayNotifications.getWin10Instance();
        }
      }
      catch (Throwable t) {
        Logger.getInstance(SystemNotificationsImpl.class).infoWithDebug(t);
      }
    }

    return null;
  }
private static @Nullable Notifier getPlatformNotifier()