title: Cannot resolve method when using consumer
body: <p>I have an InputStream that load properties file. Normally I use <code>properties.load(is);</code> But I would like to change it to Consumer as I would like to avoid using catches so I created an ThrowingConsumer that's avoid id, but the problem is that even I use normal Consumer it seems to be working when I declare that will be an InputStream, but my ThrowingConsumer is generic so it looks like that </p>
  
  <pre><code>@FunctionalInterface
  public interface ThrowingConsumer&lt;T, E extends Throwable&gt;
  {
      void accept(T t) throws E;
  
      static &lt;T, E extends Throwable&gt; Consumer&lt;T&gt; unchecked(ThrowingConsumer&lt;T, E&gt; consumer)
      {
          return t -&gt;
          {
              try
              {
                  consumer.accept(t);
              }
              catch (Throwable e)
              {
                  throw new UnsupportedOperationException(e);
              }
          };
      }
  }
  
  </code></pre>
  
  <p>And when I use <code>ThrowingConsumer.unchecked(properties::load).accept(is);</code> it's screaming that cannot resolve method load. How could I avoid it?</p>