I haven't seen the definition of "NullAnalysisErrorListener" yet, but if it's just a listener that does nothing you can use "AnalysisErrorListener.NULL_LISTENER" instead.