Fixed parsing of methods with parentheses