protected void appendPackage(@Nonnull StringBuilder code) {
		if (className.indexOf('/') > 0) {
			String packageName = className.replace('/', '.').substring(0, className.lastIndexOf('/'));
			code.append("package ").append(packageName).append(";\n");
		}
	}
Appends a package declaration if the {@link #className} is not in the default package.

@param code
		Class code to append package declaration to.
recaf-core/src/main/java/software/coley/recaf/services/compile/stub/ClassStubGenerator.java