Fix [SonarQube] Loose Coupling (Avoid using implementation types like
'HashSet'; use the interface instead)