protected static boolean isSafeClassName(@Nonnull String name) {
		// Sanity check input
		if (name.indexOf('/') >= 0)
			throw new IllegalStateException("Saw internal name format, expected source name format");

		// Allow primitives
		if (software.coley.recaf.util.Types.isPrimitiveClassName(name))
			return true;

		// All package name portions and the class name must be valid names.
		return StringUtil.fastSplit(name, true, '.').stream()
				.allMatch(ClassStubGenerator::isSafeName);
	}
@param name
		Name to check. Expected to be in the source format. IE {@code java.lang.String}.

@return {@code true} when it can be used as a class name safely.
recaf-core/src/main/java/software/coley/recaf/services/compile/stub/ClassStubGenerator.java