AnAction (@NotNull DiffRequestChain chain, @NotNull Consumer<? super Integer> onSelected, int defaultSelection) { if (chain instanceof Chain) { AnAction action = ((Chain)chain).createGoToChangeAction(onSelected, defaultSelection); if (action != null) return action; } return new SimpleGoToChangePopupAction(chain, onSelected, defaultSelection); }