private void accept(@Nonnull Consumer<ClassMember> memberConsumer) {
		int access = 0;
		if (publicCheck.isSelected()) access |= Modifier.PUBLIC;
		if (privateCheck.isSelected()) access |= Modifier.PRIVATE;
		if (protectedCheck.isSelected()) access |= Modifier.PROTECTED;
		if (staticCheck.isSelected()) access |= Modifier.STATIC;
		if (finalCheck.isSelected()) access |= Modifier.FINAL;

		String name = nameInput.textProperty().get();
		String desc = descInput.textProperty().get();
		ClassMember member;
		if (isMethod) {
			member = new BasicMethodMember(name, desc, null, access, Collections.emptyList());
		} else {
			member = new BasicFieldMember(name, desc, null, access, null);
		}

		memberConsumer.accept(member);

		hide();
	}
New generic member popup.

@param memberConsumer
		Consumer to add the member outline to a target class.

@see #forField(ClassInfo)
@see #forMethod(ClassInfo)
recaf-ui/src/main/java/software/coley/recaf/ui/control/popup/AddMemberPopup.java