private boolean isSafeReferencableName(@Nullable String name) {
		if (name == null)
			return false;

		// Must be well-formed
		if (!isSafeInternalClassName(name))
			return false;

		// Must be found in the workspace
		return workspace.findClass(name) != null;
	}
@param name
		Class name to check.

@return The class name if it is safe to reference, otherwise {@code null}.
recaf-core/src/main/java/software/coley/recaf/services/compile/stub/ClassStubGenerator.java