Centrality and transverse momentum dependence of inclusive J/ψ production at midrapidity in Pb–Pb collisions at √sNN = 5.02 TeV