refactoring parser#process_notes_and_exceptions