Fixed issue: when the method name has parentheses or brackets