CompactSyntaxTokenManager (int initialState, EscapePreprocessor preprocessor) { try { return new CompactSyntaxTokenManager(new SimpleCharStream(preprocessor, 1, 1), initialState); } catch (NoSuchMethodError e) { final Class<CompactSyntaxTokenManager> managerClass = CompactSyntaxTokenManager.class; LOG.error("Unsupported version of RNGOM in classpath. Please check your IDEA and JDK installation.", e, "Actual parameter types: " + Arrays.toString(managerClass.getConstructors()[0].getParameterTypes()), "Location of " + managerClass.getName() + ": " + getSourceLocation(managerClass), "Location of " + CharStream.class.getName() + ": " + getSourceLocation(CharStream.class)); throw e; } }