Make error prone happier by using static inner class