Lieb–Schultz–Mattis theorem and the filling constraint