Improved bracket-usage detection in invocations