private static void closeStorage(@Nullable AbstractStateStorage<?, ?> storage) throws IOException {
    if (storage != null) {
      synchronized (storage) {
        storage.close();
      }
    }
  }
private static void closeStorage(@Nullable AbstractStateStorage<?, ?> storage)