@Override
  protected boolean isActionEnabled(@NotNull IdeaGateway gw, @NotNull Collection<VirtualFile> files) {
    VirtualFile singleFile = ContainerUtil.getOnlyItem(files);
    if (singleFile == null || singleFile.isDirectory()) return false;
    return super.isActionEnabled(gw, files);
  }
@Override
  protected boolean isActionEnabled(@NotNull IdeaGateway gw, @NotNull Collection<VirtualFile> files)