It looks for small (pixel level) high contrast details and also looks for edges. Moire is likely to occur in the areas that have small high contrast details that aren’t edges.
Edit: And if there are a lot of those feature in one area it is probably moire.