docs: public String buildImageId() {
      // stream messages end with new line, so call trim to remove it
      final String stream = stream();
      return stream != null && stream.startsWith("Successfully built")
             ? stream.substring(stream.lastIndexOf(' ') + 1).trim()
             : null;
    }