@Override
		public void actionPerformed(ActionContext context) {

			// note: we use 'goBackTo()' and 'goForwardTo()' since items in the history list
			//       may not have been added to the multi-action; we have to tell the list
			//       to skip those items.
			if (isNext) {
				history.goForwardTo(url);
			}
			else {
				history.goBackTo(url);
			}
			provider.contextChanged();
		}
An action to navigate backwards or forwards in the history of data types
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/NextPreviousDataTypeAction.java