High-functioning autistic people would meet the 2nd definition when trying to predict what neurotypical people would think. But they're also probably better at predicting what other high-functioning autists would think than neurotypical people are. It's just easier to imagine what someone might think if they think like you.