Move filetype and language stats to ml.impl (IDEA-294304)