Possibility of obtaining template's analysis settings

I know that I can obtain a project's analysis settings by using

var project = new FileBasedProject(projectInfo);
var settings = project.GetSettings();
var analysisSettings = settings.GetSettingsGroup<AnalysisTaskSettings>();

I'd like to know if there is a similar method to obtain the analysis settings from a template?