@Nonnull
	public TextProvider getBundleTextProvider(@Nonnull Workspace workspace,
											  @Nonnull WorkspaceResource resource,
											  @Nonnull Bundle<? extends Info> bundle) {
		return () -> {
			if (bundle instanceof AndroidClassBundle) {
				String dexName = resource.getAndroidClassBundles().entrySet().stream()
						.filter(e -> e.getValue() == bundle)
						.map(Map.Entry::getKey)
						.findFirst()
						.orElse(null);
				if (dexName != null)
					return dexName;
			} else if (bundle instanceof AgentServerRemoteVmResource.RemoteJvmClassBundle remoteBundle) {
				return formatConfig.filter(remoteBundle.getLoaderInfo().getName());
			} else if (bundle instanceof VersionedJvmClassBundle versionedClassBundle) {
				return Lang.get("tree.classes") + " (Java " + versionedClassBundle.version() + ")";
			}

			if (bundle instanceof ClassBundle)
				return Lang.get("tree.classes");
			else
				return Lang.get("tree.files");
		};
	}
@param workspace
		Containing workspace.
@param resource
		Containing resource.
@param bundle
		The bundle to create text for.

@return Text provider for the bundle.
recaf-ui/src/main/java/software/coley/recaf/services/cell/text/TextProviderService.java