JType (String nodeName, Set<String> types) { var fromCache = primitiveTypeCache.get(nodeName); if (fromCache != null) { var type = fromCache.stream().filter(it -> it.getKey().equals(types)).map(it -> it.getValue()).findFirst().orElse(null); if (type != null) { return type; } } return null; }