Add defs snippet for self methods