boolean (final @NotNull FileContent fileContent, final ProcessingContext context) { try { String rootTagNamespace = parseHeaderWithException(CharArrayUtil.readerFromCharSequence(fileContent.getContentAsText())).getRootTagNamespace(); return rootTagNamespace != null && namespacePattern.accepts(rootTagNamespace, context); } catch (IOException e) { return false; } }