My plugin contributes PsiClasses, which can be referenced from Java, via implementing 'java.elementFinder' and 'java.shortNamesCache extenstion points.
The problem is that same classes can be contributed by my implementation of PsiElementFinder and by JavaPsiFacadeImpl$PsiElementFinderImpl. In such cases my classes should shadow classes provided by JavaPsiFacadeImpl$PsiElementFinderImpl.
How can I achieve it?
I wanted to use 'order' attribute of 'java.elementFinder' extension point, something like: order="before java". But it did not work, maybe the problem is in JavaPsiFacadeImpl.calcFinders: it does not seem to care about 'order' attribute and always adds PsiElementFinderImpl as the first finder.
If it is a bug could you fix it? Otherwise could you propose a right solution?