public static void closeSafe(@NotNull Logger log,
                               AutoCloseable... closeables) {
    for (AutoCloseable closeable : closeables) {
      if (closeable != null) {
        try {
          closeable.close();
        }
        catch (Exception e) {
          log.error(e);
        }
      }
    }
  }
public static void closeSafe(@NotNull Logger log,
                               AutoCloseable... closeables)