LPS-49294 getImmutableFieldTypes is not thread safe