class JarDirPathConverter implements Converter<String> {

  @Override
  public boolean getAllPossibleValues(List<Completion> completions, Class<?> targetType,
      String existingData, String optionContext, MethodTarget target) {
    List<Completion> allCompletions = new ArrayList<>();
    delegate.getAllPossibleValues(allCompletions, targetType, existingData, optionContext, target);
    completions.addAll(allCompletions.stream()
        .filter(JarDirPathConverter::isDirWithDirsOrDirWithJars)
        .collect(Collectors.toList()));
    return notAllAreJars(completions);
  }

  public  JarDirPathConverter();

}