private static PatternCondition<QNameElement> prefix() {
    return new PatternCondition<>("hasPrefix") {
      @Override
      public boolean accepts(@NotNull QNameElement qnameElement, ProcessingContext context) {
        final PrefixedName qname = qnameElement.getQName();
        return qname != null && qname.getPrefix() != null;
      }
    };
  }
private static PatternCondition<QNameElement> prefix()