VirtualFile (@NotNull DataContext dataContext) { VirtualFile vFile = CommonDataKeys.VIRTUAL_FILE.getData(dataContext); if (vFile != null && !vFile.isDirectory()) { vFile = vFile.getParent(); } return vFile; }