private List<Program> getSearchPrograms() {
		Program currentProgram = navigatable.getProgram();
		List<Program> searchPrograms = new ArrayList<>();
		searchPrograms.add(currentProgram);
		if (!navigationOptions.isGoToRestrictedToCurrentProgram()) {
			ProgramManager programManager = plugin.getTool().getService(ProgramManager.class);
			Program[] allOpenPrograms = programManager.getAllOpenPrograms();
			for (Program program : allOpenPrograms) {
				if (program != currentProgram) {
					searchPrograms.add(program);
				}
			}
		}
		return searchPrograms;
	}
Returns the programs to search. If searching more than the current program, make sure
the current program is first in the list.
@return the list of program to search with the current program first
Ghidra/Features/Base/src/main/java/ghidra/app/util/navigation/GoToQuery.java