code: public static void close(@CheckForNull OutputStream outputStream) {
          if (outputStream == null) {
              return;
          }
  
          try {
              outputStream.close();
          } catch (IOException e) {
              // Ignore
          }
      }
docs: Close given OutputStream, ignoring any resulting exception.
  
  @param outputStream
  the OutputStream to close; may be null (in which case nothing
  happens)