boolean (PyClass cls, String name, boolean inherited, TypeEvalContext context) { return cls.findMethodByName(name, inherited, context) != null || cls.findClassAttribute(name, inherited, context) != null; }