title: Is the method "hasOnlyElementsOfType" deprecated in Assertj 3.16.1
body: <p>I've this code that no longer works after updating to Assertj 3.16.1 </p>
  
  <pre><code>Throwable thrown = catchThrowable(() -&gt; myObject.methodThrowsException());
  assertThat(thrown).isInstanceOf(MyCustomException.class).extracting("fault").hasOnlyElementsOfType(CustomException.class).extracting("code").containsExactly("AnotherCustomException");
  </code></pre>
  
  <p>I get this error message:</p>
  
  <pre><code>java:cannot find symbol
  symbol: method hasOnlyElementsOfType(java.lang.Class&lt;CustomException.class&gt;)
  location: class org.assertj.core.api.AbstractObjectAssert&lt;capture#1 of?, capture#2 of ?&gt;
  </code></pre>
  
  <p>It's either it's deprecated or implemented differently now. I've gone through the documentation  and searched this for almost two days now to see if there's any information about how to use it as opposed to how it was used previously to enable easy transition but not found anything yet. I actually get a similar error when I use this <code>containsOnlyOnceElementsOf</code> in place of the one giving the issue. Are there any alternatives to these methods that achieve the same thing?</p>
  
  <p>Any help will be appreciated!!!</p>