The name of the method to analyze
Optional method body source code for deeper analysis
Set of responsibility identifiers (e.g., 'event-handling', 'data-retrieval')
// Detect from method name only
analyzeMethodResponsibility('getUsers', undefined);
// Returns: Set(['data-retrieval'])
// Detect from method body
analyzeMethodResponsibility('notifyChange', 'this.subject.next(data);');
// Returns: Set(['event-handling'])
// Detect multiple responsibilities
analyzeMethodResponsibility('processData', 'this.subject.next(JSON.parse(data));');
// Returns: Set(['event-handling', 'transformation'])
Analyzes a method to determine its responsibilities based on: