SI-8445, SI-6622 test cases, already fixed

They were most likely fixed in #3931 / e3107465c3.

The test case for SI-6622 is taken from Jason's PR #2654. I adjusted
the EnclosingMethod to be `null` in two places in the check file, for
the classes that are owned by fields (not methods).
Merge pull request #4011 from lrytz/t8445-6622

SI-8445, SI-6622 test cases, already fixed