@Nonnull
	private static Result<?> createResult(@Nonnull PathNode<?> path, @Nonnull Object value) {
		if (value instanceof Number number)
			return new NumberResult(path, number);
		if (value instanceof String string)
			return new StringResult(path, string);
		if (value instanceof ClassReference reference)
			return new ClassReferenceResult(path, reference);
		if (value instanceof MemberReference reference)
			return new MemberReferenceResult(path, reference);

		// Unknown value type
		throw new UnsupportedOperationException("Unsupported search result value type: " + value.getClass().getName());
	}
@param results
		Result container to dump into.
@param service
		Thread scheduler service.
@param feedback
		Search feedback mechanism <i>(To allow user cancellation and such)</i>
@param resource
		Resource to search within.
@param workspacePath
		Root workspace path node.
@param androidClassVisitor
		Android class search visitor.
		Can be {@code null} to skip searching respective content.
@param jvmClassVisitor
		JVM class search visitor.
		Can be {@code null} to skip searching respective content.
@param fileVisitor
		File search visitor.
		Can be {@code null} to skip searching respective content.
recaf-core/src/main/java/software/coley/recaf/services/search/SearchService.java