private int computeCategoryWidth() {
		int width = 0;
		List<String> categories = model.getCategories();
		Font font = jList.getFont();
		FontMetrics metrics = jList.getFontMetrics(font);
		for (String category : categories) {
			width = Math.max(width, metrics.stringWidth(category));
		}
		return width + 10;
	}
Disposes the component and clears all the model data
Ghidra/Framework/Docking/src/main/java/docking/widgets/searchlist/SearchList.java