/**
* Replaces arguments of {@link ClassInstanceCreation} and updates
* {@link ConstructorCreationSupport}.
*/
private void replaceConstructorArguments(String args) throws Exception {
ConstructorCreationSupport creationSupport = (ConstructorCreationSupport) getCreationSupport();
ClassInstanceCreation creation = creationSupport.getCreation();
getEditor().replaceCreationArguments(creation, ImmutableList.of(args));
setCreationSupport(new ConstructorCreationSupport(creation));
}