After the first refactoring of VisitServiceImpl.stopVisits() which removed the nesting we can see that the first section of the method until
is concerned with getting the VisitType's from the GlobalProperty which define what VisitTypes can be closed by this method.
I suggest to extract this into private method getVisitTypesToStop()
Of course you need to ensure that this method always returns a collection and never null.
Make sure not to extract