This function uses AnalysisManager, which is Static Analyzer-specific entity, but i want path diagnostics to be independent of the Static Analyzer.
In fact it only uses AnalysisManager::isInCodeFile() which is essentially static and might be useful outside of the Analyzer; however, Clang-Tidy has its own idea of what code to analyze, so i feel i can't enforce this method on them.
More importantly, though, i'm only handing off the PathDiagnostic data structure, but not the procedure of constructing those particularly neat analyzer-like path diagnostics. And this whole function is definitely part of the construction procedure, not of the data structure itself, so it shouldn't be handed off.