@Nonnull
	public AddMemberPopup forMethod(@Nonnull ClassInfo info) {
		isMethod = true;

		nameConflict.bind(nameInput.textProperty().map(name -> {
			String desc = descInput.textProperty().get();
			for (MethodMember method : info.getMethods()) {
				if (method.getName().equals(name) && method.getDescriptor().equals(desc)) {
					return true;
				}
			}
			return false;
		}));

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

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

		descInput.setText("()V");

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

@param info
		Class to add the method to.

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