public SwiftNode getFirstAncestor(SwiftDemangledNodeKind... ancestorKinds) {
		if (ancestorKinds != null && ancestorKinds.length > 0) {
			for (SwiftNode p = parent; p != null; p = p.getParent()) {
				for (SwiftDemangledNodeKind ancestorKind : ancestorKinds) {
					if (p.getKind().equals(ancestorKind)) {
						return p;
					}
				}
			}
		}
		return null;
	}
Gets the first ancestor {@link SwiftNode} of the given kind(s)

@param ancestorKinds The ancestor kinds
@return The first ancestor {@link SwiftNode} of the given kind
Ghidra/Features/SwiftDemangler/src/main/java/ghidra/app/util/demangler/swift/nodes/SwiftNode.java