void (@NotNull Project p, @NotNull IdeaGateway gw, @NotNull AnActionEvent e) { String labelName = Messages.showInputDialog(p, message("put.label.name"), message("put.label.dialog.title"), null, "", new NonEmptyInputValidator()); if (labelName != null) { LocalHistory.getInstance().putUserLabel(p, labelName); } }