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