@Nullable
  @Override
  public PyFunction getContainingFunction() {
    final PsiElement parent = getParentByStub();
    return parent instanceof PyFunction ? (PyFunction) parent : null;
  }
@Nullable
  @Override
  public PyFunction getContainingFunction()