private static boolean isValidMethod(String method) {
        // Define a list of allowed methods
        List<String> allowedMethods = Arrays.asList(
                TubeConst.ADD, TubeConst.CLONE, TubeConst.AUTH_CONTROL, TubeConst.MODIFY,
                TubeConst.DELETE, TubeConst.REMOVE, TubeConst.QUERY_CAN_WRITE, TubeConst.PUBLISH, TubeConst.SUBSCRIBE);
        return allowedMethods.contains(method);
    }
Checks if the given method is valid by comparing it against a list of allowed methods.

@param method The method to validate.
@return {@code true} if the method is valid, {@code false} otherwise.
inlong-tubemq/tubemq-manager/src/main/java/org/apache/inlong/tubemq/manager/controller/topic/TopicWebController.java