boolean hasNamespaceDeclarations() {
    Boolean result = myHasNamespaceDeclarations;
    if (result == null) {
      myHasNamespaceDeclarations = result = calculateHasNamespaceDeclarations();
    }
    return result;
  }
boolean hasNamespaceDeclarations()