private static Filter filterType(@Nullable String filterType) {
    return filterType == null ? Filter.NONE :
           filterType.equals("file-type") ? Filter.TYPE :
           filterType.equals("file-ext") ? Filter.EXT :
           Filter.OTHER;
  }
private static Filter filterType(@Nullable String filterType)