In some scenarios Pull Up worked correctly only by chance, thanks to incorrect resolve on copied method. However there are more scenarios, presented in new tests ReferencedStaticGenericClassFromOuterClass and ReferencedStaticMethodFromOuterClass, which did not work correctly even before. The fix addresses these cases.
GitOrigin-RevId: bd56ed851dd8bbf546dba2847535a98de1eea295