ActionDefinition result = new ActionDefinition(action);
if (action instanceof ParameterizedAction) {
skip('(');
ParameterizedAction parametrizedAction = (ParameterizedAction)action;
Map<String, ActionParameter<?>> actionParams = new HashMap<>();
for (ActionParameter<?> param: parametrizedAction.getActionParameters()) {
actionParams.put(param.getName(), param);
}
while (index < s.length && s[index] != ')') {
String paramName = readTillChar('=', '=');