private void accept(@Nonnull Consumer<String> nameConsumer) {
		// Do nothing if conflict detected
		if (nameConflict.get() || isIllegalValue.get()) {
			Toolkit.getDefaultToolkit().beep();
			return;
		}

		String text = EscapeUtil.unescapeStandard(nameInput.getText());
		CompletableFuture.runAsync(() -> nameConsumer.accept(text));
		hide();
	}
@param nameConsumer
		Action to run on accept.
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/NamePopup.java