Ref<PyType> (@NotNull PyCallable callable, @NotNull TypeEvalContext context) { if (PyiUtil.isInsideStub(callable)) { return null; } final PyCallable callableSkeleton = PyUserSkeletonsUtil.getUserSkeletonWithContext(callable, context); if (callableSkeleton != null) { return Ref.create(context.getReturnType(callableSkeleton)); } return null; }