@Nullable
	private InheritanceVertex createVertex(@Nullable String name) {
		// Edge case handling for 'java/lang/Object' doing a parent lookup.
		// There is no parent, do not use STUB.
		if (name == null)
			return null;

		// Edge case handling for arrays. There is no object typing of arrays.
		if (name.isEmpty() || name.charAt(0) == '[')
			return null;

		// Find class in workspace, if not found yield stub.
		ClassPathNode result = workspace.findClass(name);
		if (result == null)
			return STUB;

		// Map class to vertex.
		ResourcePathNode resourcePath = result.getPathOfType(WorkspaceResource.class);
		boolean isPrimary = resourcePath != null && resourcePath.isPrimary();
		ClassInfo info = result.getValue();
		return new InheritanceVertex(info, this::getVertex, this::getDirectChildren, isPrimary);
	}
When {@link #STUB} is the return of this method, the class was not found.
<br>
When {@code null} is the return of this method, the class name is illegal.

@param name
		Internal class name.

@return Vertex of class.
recaf-core/src/main/java/software/coley/recaf/services/inheritance/InheritanceGraph.java