It could vaporize a rock and identify its minerals from the spectrum of light they emitted, or drill a sample and tease apart its chemical constituents.
For clarification the study, per the statement quoted below in the last paragraph, was limited to a sample of individuals referred into comprehensive community mental services and not indicative of the general population of people on the spectrum.