Helpers for application terms.
@spec collect(Theoria.Term.t()) :: {Theoria.Term.t(), [Theoria.Term.t()]}