@Nonnull
	public NamePopup forPackageCopy(@Nonnull Bundle<?> bundle) {
		titleProperty().bind(Lang.getBinding("dialog.title.copy-package"));
		output.textProperty().bind(Lang.getBinding("dialog.header.rename-package-error"));

		// Bind conflict property
		nameConflict.bind(nameInput.textProperty().map(dirName -> bundleHasDirectory(bundle, dirName)));
		BooleanBinding notContainingPackageOrEqualToInitial = nameConflict.or(nameInput.textProperty().isEqualTo(initialText));
		accept.disableProperty().bind(isIllegalValue.or(notContainingPackageOrEqualToInitial));
		output.visibleProperty().bind(notContainingPackageOrEqualToInitial);
		return this;
	}
@param bundle
		Target bundle the package will reside in.
		Used to check for name overlap.

@return Self.
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/NamePopup.java