public boolean isLocalNodeLeader() {
        return discoveryService.getLocalNodeStatusManager()
                .isLocalNodeLeader();
    }
@param propertiesManager is used to get local properties and listen to their changes
turms-server-common/src/main/java/im/turms/server/common/infra/cluster/node/Node.java