@Override
  @Nullable
  public Set<QName> getAttributes(boolean forValidation) {
    final ElementNames names = getNames(getFile());
    if (names != null) {
      return !forValidation || names.validateNames ? names.attributeNames : null;
    }
    return null;
  }
@Override
  @Nullable
  public Set<QName> getAttributes(boolean forValidation)