AnAction () { return GoToChangePopupBuilder.create(myRequestChain, index -> { if (index >= 0 && index < myRequestChain.getRequests().size() && index != myIndex) { setCurrentRequest(index); } }, myIndex); }