add checker to check has the scala type set.