do not show duplicate containing file when navigation element is a file itself

This commit is contained in:
Eugene Kudelevsky
2011-03-29 17:27:54 +04:00
parent 79b889236c
commit dee971c2f1
@@ -50,6 +50,6 @@ public class PsiGotoRelatedItem extends GotoRelatedItem {
@Override
public PsiFile getContainingFile() {
return myElement.getContainingFile();
return myElement instanceof PsiFile ? null : myElement.getContainingFile();
}
}