Remove unnecessary `respond_to?(:indexes)` checking
#26688

kamipo wants to merge kamipo:remove_respond_to_indexes into rails:master

We do not currently have an analysis of these two commits