public static boolean isAllowedTransition(SourceStatus current, SourceStatus next) {
        Set<SourceStatus> nextStates = SOURCE_STATE_AUTOMATON.get(current);
        return nextStates != null && nextStates.contains(next);
    }
Whether the `next` state is valid according to the `current` state.
inlong-manager/manager-common/src/main/java/org/apache/inlong/manager/common/enums/SourceStatus.java