Improved declaration and handling of AnalysisMethodAttribute