if (CommonUtil.isCalledThrough(NavBarPresentation.class)) {
T object = getObject();
if (object != null) {
BrowserTreeNode treeParent = object.getTreeParent();
if (treeParent instanceof DBObjectList<?>) {
DBObjectList objectList = (DBObjectList) treeParent;
return NavigationPsiCache.getPsiDirectory(objectList).getVirtualFile();
}
}
}
return null;