allowing class wildcard for method specification