public @Nullable AttributeStub getAttributeStub(final XmlName name) {
    final List<? extends Stub> stubs = getChildrenStubs();
    if (stubs.isEmpty()) {
      return null;
    }

    //noinspection ForLoopReplaceableByForEach
    for (int i = 0, size = stubs.size(); i < size; i++) {
      final Stub stub = stubs.get(i);
      if (stub instanceof AttributeStub &&
          ((AttributeStub)stub).getName().equals(name.getLocalName())) {
        return (AttributeStub)stub;
      }
    }
    return null;
  }
public @Nullable AttributeStub getAttributeStub(final XmlName name)