Pattern (@NotNull String markerText) { try { return Pattern.compile(markerText); } catch (PatternSyntaxException pse) { LOG.error("Loaded regexp pattern is invalid: '" + markerText + "', error message: " + pse.getMessage()); FORMATTER_TAGS_ACCEPT_REGEXP = false; return null; } }