private static boolean superFunctionHasDoc(@NotNull PyFunction pyFunction, @NotNull TypeEvalContext context) {
    PyClass containingClass = pyFunction.getContainingClass();
    if (containingClass == null) return false;

    for (PyClass ancestor : containingClass.getAncestorClasses(context)) {
      PyFunction superFunction = ancestor.findMethodByName(pyFunction.getName(), false, context);
      if (superFunction != null && StringUtil.isNotEmpty(superFunction.getDocStringValue())) {
        return true;
      }
    }
    return false;
  }
private static boolean superFunctionHasDoc(@NotNull PyFunction pyFunction, @NotNull TypeEvalContext context)