1844869e8a
Apparently it depended on the ordering of the synthetic `$annotations` methods generated for properties. And those methods were always generated at the end of a Java stub by kapt because they lacked PSI element, and thus `ClassFileToSourceStubConverter.convertClass` could not compute their source position, and it placed them at the end as all other synthetic methods. The solution is to provide PSI element for `$annotations` methods in JvmDeclarationOrigin. This origin is then collected in kapt in `OriginCollectingClassBuilderFactory` and used for sorting, as in the case of the old JVM backend. #KT-56360 Fixed