private static boolean isYieldFrom(@NotNull PsiElement element) {
    return element instanceof PyYieldExpression && ((PyYieldExpression)element).isDelegating();
  }
private static boolean isYieldFrom(@NotNull PsiElement element)