Added Conditions.from(), moved current check to DocumentWindowScanner