public PyFunction addFunctionAfter(PsiElement target, PsiElement anchor) {
    return (PyFunction)target.addAfter(buildFunction(), anchor);
  }
public PyFunction addFunctionAfter(PsiElement target, PsiElement anchor)