The existence of nontrivial solution of a class of Schrödinger–Bopp–Podolsky system with critical growth