docs: public static void checkArgument( Object argument, Class<?> expectedClass )
      {
          if ( !expectedClass.isInstance( argument ) )
          {
              throw new IllegalArgumentException( "Argument expected to be of type: " + expectedClass.getName() + " but was: " + argument );
          }
      }