boolean (@NotNull VirtualFile root, @ActionText @NotNull String actionName) { if (root.isValid()) return true; showWarningDialog(myProject, message("dialog.message.invalid.working.copy.root", root.getPath()), message("dialog.title.can.not.invoke.action", actionName)); return false; }