This code fails in runtime with MalformedParameterizedTypeException - run main to try it out:
However, it does not fail if a visibility modifier is added before dependency attribute - private, protected, public or @PackageScope transformation.
This also fails with MalformedParameterizedTypeException and I don't know how to make it work:
Do you know what may be the cause? Do you know of any workaround for the second case?