; Java call extraction queries
; Captures: @node (call), @callee (method/constructor name)

; foo(args) / this.foo(args) / obj.method(args)
(method_invocation
  name: (identifier) @callee) @node

; new Foo(args)
(object_creation_expression
  type: (type_identifier) @callee) @node
