code: public static <T> T any(Class<T> type) {
          reportMatcher(new InstanceOf.VarArgAware(type, "<any " + type.getCanonicalName() + ">"));
          return defaultValue(type);
      }
docs: Matches any object of given type, excluding nulls.
  
  <p>
  This matcher will perform a type check with the given type, thus excluding values.
  See examples in javadoc for {@link ArgumentMatchers} class.
  
  This is an alias of: {@link #isA(Class)}}
  </p>
  
  <p>
  Since Mockito 2.1.0, only allow non-null instance of <code></code>, thus <code>null</code> is not anymore a valid value.
  As reference are nullable, the suggested API to <strong>match</strong> <code>null</code>
  would be {@link #isNull()}. We felt this change would make tests harness much safer that it was with Mockito
  1.x.
  </p>
  
  <p><strong>Notes : </strong><br/>
  <ul>
  <li>For primitive types use {@link #anyChar()} family.</li>
  <li>Since Mockito 2.1.0 this method will perform a type check thus <code>null</code> values are not authorized.</li>
  <li>Since mockito 2.1.0 {@link #any()} and {@link #anyObject()} are not anymore aliases of this method.</li>
  </ul>
  </p>
  
  @param <T> The accepted type
  @param type the class of the accepted type.
  @return <code>null</code>.
  @see #any()
  @see #anyObject()
  @see #anyVararg()
  @see #isA(Class)
  @see #notNull()
  @see #notNull(Class)
  @see #isNull()
  @see #isNull(Class)