Question: how to obtain the references to a class from non-java files?
In order to determine if a class is only used by test code, I
- 1°/ obtain all the references to it (see below), and
- 2°/ check if any of them is located in a production source tree.
public static PsiReference referencesTo (PsiMember i_psiMember,
PsiSearchHelper searchHelper =
SearchScope searchUseScope = i_psiMember.getUseScope();
PsiReference references = searchHelper.findReferences
(i_psiMember, searchUseScope, i_ignoreAccessScope);
Problem: I miss the xml references, like the ones in plugin.xml.
How can I obtain those missing references?