@Override
  public @Nls String generateDoc(PsiElement element, @Nullable PsiElement originalElement) {
    if (!(element instanceof ConfigurationElement)) {
      return null;
    }

    Configuration configuration = ((ConfigurationElement)element).getConfiguration();
    return DocumentationMarkup.DEFINITION_START + StringUtil.escapeXmlEntities(configuration.getName()) + DocumentationMarkup.DEFINITION_END +
           DocumentationMarkup.CONTENT_START + StringUtil.escapeXmlEntities(configuration.getMatchOptions().getSearchPattern()) +
           DocumentationMarkup.CONTENT_END;
  }
@Override
  public @Nls String generateDoc(PsiElement element, @Nullable PsiElement originalElement)