Get outlines/border of Material mask

Bump. I need it as well:

  1. how to mask/select material ID in the material editor
  2. and then select it’s border/outline?