private static boolean hasServiceManager() {
    try {
      @SuppressWarnings("unused")
      final Class<JpsServiceManager> jpsServiceManager = JpsServiceManager.class;
      return true;
    }
    catch (NoClassDefFoundError ignored) {
      return false;
    }
  }
private static boolean hasServiceManager()