private static boolean isMethodType(@NotNull PyClassType type) {
    final PyBuiltinCache builtinCache = PyBuiltinCache.getInstance(type.getPyClass());
    return type.equals(builtinCache.getClassMethodType()) ||
           type.equals(builtinCache.getStaticMethodType()) ||
           type.equals(builtinCache.getObjectType(PyNames.FUNCTION));
  }
private static boolean isMethodType(@NotNull PyClassType type)