void () { // Check that annotations work normally NullabilityAnnotationInfo fooNullability = getMethodReturnNullability("pkg.Test", "foo"); assertNotNull(fooNullability); assertEquals(Nullability.NOT_NULL, fooNullability.getNullability()); assertTrue(fooNullability.isContainer()); // Check the conflicting case NullabilityAnnotationInfo nullability = getMethodReturnNullability("pkg.Conflict", "getNullableSomething"); assertNull(nullability); }