code: public static Icon from(InputStream stream) throws IOException
      {
          Checks.notNull(stream, "InputStream");
  
          return from(IOUtil.readFully(stream));
      }
docs: Creates an {@link Icon Icon} with the specified {@link java.io.InputStream InputStream}.
  <br>We here read the specified InputStream and forward the retrieved byte data to {@link #from(byte[])}.
  
  @param  stream
  A not-null InputStream.
  
  @throws IllegalArgumentException
  if the provided stream is null
  @throws IOException
  If the first byte cannot be read for any reason other than the end of the file,
  if the input stream has been closed, or if some other I/O error occurs.
  
  @return An Icon instance representing the specified InputStream
  
  @see    net.dv8tion.jda.core.utils.IOUtil#readFully(InputStream)