FileStatus (NavigationItem item) { if (item instanceof PsiElement) { return getPsiElementFileStatus((PsiElement)item); } if (item instanceof AbstractTreeNode) { return ((AbstractTreeNode<?>) item).getFileStatus(); } if (item instanceof PsiElementNavigationItem) { PsiElement target = ((PsiElementNavigationItem) item).getTargetElement(); if (target != null) return getPsiElementFileStatus(target); } return FileStatus.NOT_CHANGED; }