...
To avoid any sonarcloud complains, use Map.of/Set.of when you want to create an Immutable immutable map/set using set of entries supplied by you on the fly. Even though an unmodifiable map/set is returned, this is still an immutable map/set as there is no mutable map/set, that can be changed.
From CPS codebase, Line 60 of the MutilpartFileUtil.java file found in cps/cps-rest/src/main/java/org/cps/rest/utils/
...