LPS-37844 Apply pattern from portal#12570

https://github.com/brianchandotcom/liferay-portal/pull/12570