for (AbstractAtgAstNode n : selectedNodes) {
if (n instanceof IdentNode &&
((IdentNode)n).getKind() == IdentNode.Kind.CHARACTER_SET)
{
return new RenameCharacterSetRefactoring(info);
} else if (n instanceof IdentNode &&
((IdentNode)n).getKind() == IdentNode.Kind.TOKEN)
{
return new RenameTokenRefactoring(info);