private boolean resolvesToClass(@NotNull PyExpression qualifier) {
    for (PsiElement element : PyUtil.multiResolveTopPriority(qualifier, myResolveContext)) {
      if (element == myFunction.getContainingClass()) {
        return true;
      }
    }
    return false;
  }
private boolean resolvesToClass(@NotNull PyExpression qualifier)