Changes to add scala Analyzer which is similar to java analyzer