@Override
  protected @NotNull PyFunction createNewFunction(@NotNull Collection<String> newParamNames) {
    final PyFunction copied = (PyFunction)myFunction.copy();
    addParameters(copied.getParameterList(), newParamNames);
    return copied;
  }
@Override
  protected @NotNull PyFunction createNewFunction(@NotNull Collection<String> newParamNames)