Define predicate which means that a method is declared in a class