public void select(@Nonnull ClassMember member) {
		CompilationUnitModel localUnit = unit;
		if (localUnit == null) {
			queuedSelectionTask = () -> select(member);
		} else {
			queuedSelectionTask = null;
			try {
				for (ClassModel declaredClass : localUnit.getDeclaredClasses()) {
					if (member.isField()) {
						List<VariableModel> matchedFields = declaredClass.getFields().stream()
								.filter(v -> v.getName().equals(member.getName()))
								.toList();
						if (matchedFields.size() == 1) {
							// Only one field by the given name.
							selectRange(matchedFields.getFirst().getRange());
						} else if (matchedFields.size() > 1) {
							// Multiple fields by the given name, need to differentiate by type.
							for (VariableModel field : matchedFields) {
								if (field.getType().resolve(resolver) instanceof DescribableResolution fieldTypeResolution
										&& fieldTypeResolution.getDescribableEntry().getDescriptor().equals(member.getDescriptor())) {
									selectRange(field.getRange());
									break;
								}
							}
						}
					} else {
						List<MethodModel> matchedMethods = declaredClass.getMethods().stream()
								.filter(m -> m.getName().equals(member.getName()))
								.toList();
						if (matchedMethods.size() == 1) {
							// Only one method by the given name.
							selectRange(matchedMethods.getFirst().getRange());
						} else if (matchedMethods.size() > 1) {
							// Multiple methods by the given name, need to differentiate by signature.
							for (MethodModel method : matchedMethods) {
								if (method.resolve(resolver) instanceof MethodResolution methodResolution
										&& methodResolution.getMethodEntry().getDescriptor().equals(member.getDescriptor())) {
									selectRange(method.getRange());
									break;
								}
							}
						}
					}
				}
			} catch (Throwable t) {
				logger.error("Unhandled exception in Java context support - select '{}'", member.getName(), t);
			}
		}
	}
Selects a member in the AST.

@param member
		Member to select.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/source/JavaContextActionSupport.java