For Java, there’s indeed a threshold of 10 statements but you cannot change it according to the documentation.
Anyway, I don’t see how the 2 methods could be considered as duplicate. The first one contains:
return (Map<String, List<String>>) claims.get("filters");
and the second one:
return claims.get("language", String.class);