public static boolean isRemoteSession() {
    if (!SystemInfoRt.isWindows) {
      return false;
    }
    if (!LoadingState.COMPONENTS_REGISTERED.isOccurred() || ApplicationManager.getApplication() == null) {
      return false;
    }
    RemoteDesktopService instance = getInstance();
    return instance != null && instance.isRemoteDesktopConnected();
  }
public static boolean isRemoteSession()