add `format method` menu item for method source elements