The safePattern() method is now static.