Port util classes from designer

- ported a couple utility classes from Designer
To keep them all together, can constants be added to StringConstants in the SPI plugin rather than potentially duplicating inside different classes?