Move "Returns..." to the end of the method documentation
Handle case where there is no window and test that case