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