@Override
  protected @NotNull PyFunction createNewFunction(@NotNull Collection<String> newParams) {
    final PyFunction copied = (PyFunction)myFunction.copy();
    final PyParameter[] params = copied.getParameterList().getParameters();
    if (params.length > 0) {
      params[0].delete();
    }
    addParameters(copied.getParameterList(), newParams);
    return copied;
  }
@Override
  protected @NotNull PyFunction createNewFunction(@NotNull Collection<String> newParams)