final PsiFile containingFile = element.getContainingFile();
if (containingFile == null || containingFile.getFileType().isBinary()) return true;
return false;
}
public static void decodeFileReferences(PsiElement element) {
<BUG>if (isBinary(element)) return;
element.accept(new PsiRecursiveElementVisitor(true) {</BUG>
@Override public void visitElement(PsiElement element) {
final PsiFileSystemItem item = element.getCopyableUserData(REF_FILE_SYSTEM_ITEM_KEY);
element.putCopyableUserData(REF_FILE_SYSTEM_ITEM_KEY, null);

final PsiFile containingFile = element.getContainingFile();
if (containingFile == null || containingFile.getFileType().isBinary()) return true;
return false;
}
public static void decodeFileReferences(PsiElement element) {
if (element instanceof PsiCompiledElement || isBinary(element)) return;
element.accept(new PsiRecursiveElementVisitor(true) {
@Override public void visitElement(PsiElement element) {
final PsiFileSystemItem item = element.getCopyableUserData(REF_FILE_SYSTEM_ITEM_KEY);
element.putCopyableUserData(REF_FILE_SYSTEM_ITEM_KEY, null);
