private PsiMethod generateDelegate(final PsiMethod methodToReplaceIn) throws IncorrectOperationException {
    final PsiMethod delegate = createDelegate(methodToReplaceIn, myParameterInitializer.getText(), myParametersToRemove);
    return (PsiMethod)methodToReplaceIn.getContainingClass().addBefore(delegate, methodToReplaceIn);
  }
private PsiMethod generateDelegate(final PsiMethod methodToReplaceIn)