Statistics of occupation times and connection to local properties of nonhomogeneous random walks.