@NotNull
  private static String validateRegexpAndGet(final String regexp, final @NlsContexts.DialogMessage String message) throws ConfigurationException {
    try {
      if (!StringUtil.isEmptyOrSpaces(regexp)) {
        Pattern.compile(regexp);
      }
    }
    catch (PatternSyntaxException e) {
      throw new ConfigurationException(message + " " + e.getMessage());
    }
    return regexp;
  }
@NotNull
  private static String validateRegexpAndGet(final String regexp, final @NlsContexts.DialogMessage String message)