void (List<? extends MyUnwrapAction> options, Editor editor, PsiFile file) { if (options.isEmpty()) return; if (!getUnwrapDescription(file).showOptionsDialog() || ApplicationManager.getApplication().isUnitTestMode() ) { options.get(0).perform(); return; } showPopup(options, editor); }