void (@NotNull AnActionEvent e) { final Ref<JavaCallerChooser> chooser = new Ref<>(); Consumer<Set<PsiMethod>> callback = psiMethods -> { myMethodsToPropagateExceptions = psiMethods; myExceptionPropagationTree = chooser.get().getTree(); }; chooser.set(new JavaCallerChooser(getMethod(), myProject, JavaRefactoringBundle.message("changeSignature.exception.caller.chooser"), myExceptionPropagationTree, callback)); chooser.get().show(); }