void (@NotNull PsiBuilder builder, @NotNull Language language, long parsingTimeNs) { //noinspection IncorrectServiceRetrieving ParserDiagnosticsHandler handler = ApplicationManager.getApplication().getService(ParserDiagnosticsHandler.class); if( handler != null){ handler.registerParse(builder, language, parsingTimeNs); } }