public void addToInstructions(ProgramSelection selection, InstructionSearchPlugin plugin) {

		MessagePanel msg = getMessagePanel();
		if (selection == null && msg != null) {
			msg.setMessageText(
				"Select instructions from the listing (and hit add) to update the table.",
				Messages.NORMAL);
		}

		if (selection != null && plugin.isSelectionValid(selection, this)) {
			addToSearchData(plugin.getCurrentProgram(), selection);
		}
	}
Adds the instructions in the given selection and displays them in the gui.

@param selection the current selection
@param plugin the parent plugin
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/ui/InstructionSearchDialog.java