void (String pattern) { nonNlsLiteralPattern = pattern; myCachedLiteralPattern = null; if (!pattern.trim().isEmpty()) { try { myCachedLiteralPattern = Pattern.compile(pattern); } catch (PatternSyntaxException ignored) { } } }