void (@RegExp @Nullable String pattern) { try { if (pattern != null && pattern.length() > 0) { myIgnorePattern = pattern; myCompiledIgnorePattern = Pattern.compile(pattern, Pattern.DOTALL); } else { myIgnorePattern = ""; myCompiledIgnorePattern = null; } } catch (Exception ex) { myCompiledIgnorePattern = null; Logger.getInstance(getClass().getName()).info("Invalid ignore-pattern", ex); } }