I\'ve got a library that was changed to introduce a factory method to replace a constructor (the reasons aren\'t important right now, in the current case it was for improved typ
I think you will have to write your own refactoring plugin. The tests for org.eclipse.jdt.ui.tests.refactoring are an interesting place to start.
Some interesting reads on the topic:
This is not a way to apply refactoring to callers only but it may get you past your problem.
Would it be possible to add to your project a fake MyContainer.java
file that has the same signatures as that in the library, apply your refactoring and then discard the java file? You could even use decompiled soure, though you might have to generify it yourself.