/// Returns true if the diagnostic location (or any additional location) is within the given tree and optional filterSpanWithinTree.
/// Returns true if the diagnostic location (or any additional location) is within the given tree and intersects with the filterSpanWithinTree, if non-null.