@Nonnull
	public NamePopup forFieldCopy(@Nonnull ClassInfo declaringClass, @Nonnull ClassMember member) {
		titleProperty().bind(Lang.getBinding("dialog.title.copy-field"));
		output.textProperty().bind(Lang.getBinding("dialog.header.copy-field-error"));

		// Bind conflict property
		String descriptor = member.getDescriptor();
		nameConflict.bind(nameInput.textProperty().map(name -> declaringClass.getDeclaredField(name, descriptor) != null));
		accept.disableProperty().bind(isIllegalValue.or(nameConflict));
		output.visibleProperty().bind(nameConflict);
		return this;
	}
@param declaringClass
		Class the field is declared in.
		Used to check for name overlap.
@param member
		Current field info.

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