public static void registerParse(@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);
    }
  }
public static void registerParse(@NotNull PsiBuilder builder, @NotNull Language language, long parsingTimeNs)