presto-main/src/main/java/io/prestosql/operator/WorkProcessor.java/WorkProcessor/finished
class WorkProcessor:        @SuppressWarnings("unchecked")
        public static <T> ProcessState<T> finished()
        {
            return (ProcessState<T>) FINISHED_STATE;
        }