@Nonnull
	public AddMemberPopup forField(@Nonnull ClassInfo info) {
		isMethod = false;

		nameConflict.bind(nameInput.textProperty().map(name -> {
			for (FieldMember field : info.getFields()) {
				if (field.getName().equals(name)) {
					return true;
				}
			}
			return false;
		}));

		isIllegalDescriptor.bind(descInput.textProperty().map(text -> text.isBlank() ||
				!DescriptorUtil.isValidFieldDescriptor(text)));

		setTitle(Lang.get("dialog.title.add-field"));

		descInput.setText("Ljava/lang/Object;");

		return this;
	}
Configures the popup for adding a field.

@param info
		Class to add the field to.

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