@Override
      public void visit(Jar element) {
        File archiveFile = GradleTaskUtil.getTaskArchiveFile(element);
        if (archiveFile != null) {
          taskArtifacts.add(archiveFile);
        }
      }
@Override
      public void visit(Jar element)