@Override
    @SuppressWarnings("unchecked")
    protected <T extends AbstractUserAgentAnalyzerDirect> T createNewInstance() {
        return (T) new UserAgentAnalyzerDirect();
    }
Do not try to construct directly; Use the Builder you get from newBuilder()
analyzer/src/main/java/nl/basjes/parse/useragent/UserAgentAnalyzerDirect.java