private static final Key<PsiFileSystemItem> REF_FILE_SYSTEM_ITEM_KEY = Key.create("REF_FILE_SYSTEM_ITEM_KEY");
private FileReferenceContextUtil() {
}
public static Map<String, PsiFileSystemItem> encodeFileReferences(PsiElement element) {
final Map<String,PsiFileSystemItem> map = new HashMap<String, PsiFileSystemItem>();
<BUG>if (isBinary(element)) return map;
element.accept(new PsiRecursiveElementWalkingVisitor(true) {</BUG>
@Override public void visitElement(PsiElement element) {
if (element instanceof PsiLanguageInjectionHost) {
((PsiLanguageInjectionHost)element).processInjectedPsi(new PsiLanguageInjectionHost.InjectedPsiVisitor() {

private static final Key<PsiFileSystemItem> REF_FILE_SYSTEM_ITEM_KEY = Key.create("REF_FILE_SYSTEM_ITEM_KEY");
private FileReferenceContextUtil() {
}
public static Map<String, PsiFileSystemItem> encodeFileReferences(PsiElement element) {
final Map<String,PsiFileSystemItem> map = new HashMap<String, PsiFileSystemItem>();
if (element instanceof PsiCompiledElement || isBinary(element)) return map;
element.accept(new PsiRecursiveElementWalkingVisitor(true) {
@Override public void visitElement(PsiElement element) {
if (element instanceof PsiLanguageInjectionHost) {
((PsiLanguageInjectionHost)element).processInjectedPsi(new PsiLanguageInjectionHost.InjectedPsiVisitor() {
