The closing part that goes in the finally block is a bit
ugly to look at:It's a nice candidate for a utility method, safeClose,
or something. Unfortunately, the inspection doesn't understand
that safeClose actually closes the resource. Would it be
possible to handle this case, or do I just accept things
as they stand?