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