; Java import extraction queries
; Captures: @node (import), @source (fully qualified path)

; import com.example.Foo;
; import static com.example.Foo.bar;
(import_declaration
  (scoped_identifier) @source) @node

; import Foo; (single identifier, rare)
(import_declaration
  (identifier) @source) @node
