private static List<Symbol> getSymbols(TreePath[] selectionPaths) {
		if (selectionPaths == null) {
			return Collections.emptyList();
		}

		List<Symbol> symbols = new ArrayList<>();
		for (TreePath treePath : selectionPaths) {
			Object object = treePath.getLastPathComponent();
			if (object instanceof SymbolNode) {
				SymbolNode symbolNode = (SymbolNode) object;
				symbols.add(symbolNode.getSymbol());
			}
		}
		return symbols;
	}
Returns all selected {@link SymbolNode}s or an empty list.
@return all selected {@link SymbolNode}s or an empty list.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symboltree/SymbolTreeActionContext.java