@Override
	public boolean isCellEditable(int rowIndex, int columnIndex) {
		if (columnIndex == IS_PRIMARY_COL || columnIndex == REF_TYPE_COL) {
			if (rowIndex >= refs.length) {
				return false;
			}
			Address toAddr = refs[rowIndex].getToAddress();
			if (toAddr.isMemoryAddress()) {
				return true;
			}
			if (columnIndex == REF_TYPE_COL) {
				return true;
			}
		}
		return false;
	}
@see javax.swing.table.AbstractTableModel#isCellEditable(int, int)
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/references/EditReferencesModel.java