@Nonnull
	public TextProvider getVariableTextProvider(@Nonnull Workspace workspace,
												@Nonnull WorkspaceResource resource,
												@Nonnull ClassBundle<? extends ClassInfo> bundle,
												@Nonnull ClassInfo declaringClass,
												@Nonnull MethodMember declaringMethod,
												@Nonnull LocalVariable variable) {
		return () -> {
			String text;
			Type type = Type.getType(variable.getDescriptor());
			String name = formatConfig.filter(variable.getName());
			if (Types.isPrimitive(type)) {
				text = type.getClassName() + " " + name;
			} else {
				text = formatConfig.filterShorten(type.getClassName()) + " " + name;
			}
			return formatConfig.filterMaxLength(text);
		};
	}
@param workspace
		Containing workspace.
@param resource
		Containing resource.
@param bundle
		Containing bundle.
@param declaringClass
		Containing class.
@param declaringMethod
		Containing method.
@param variable
		Variable to get the text of.

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