public FileContentPattern xmlWithRootTag(final @NotNull String rootTag) {
    return with(new PatternCondition<>("withRootTag") {
      @Override
      public boolean accepts(@NotNull FileContent fileContent, ProcessingContext context) {
        try {
          return rootTag.equals(parseHeaderWithException(CharArrayUtil.readerFromCharSequence(fileContent.getContentAsText())).getRootTagLocalName());
        }
        catch (IOException e) {
          return false;
        }
      }
    });
  }
public FileContentPattern xmlWithRootTag(final @NotNull String rootTag)