public static String nameOf(File file, ClassOrInterface<?> clazz) {
        return Formatting.fileToClassName(file.getName())
            .flatMap(Formatting::packageName)
            .orElseThrow(
                () -> new RuntimeException(
                    "File did not have appropriate name."
                )
            ) + "." + pathTo(file, clazz.getName());
    }
Creates a full name for the specified class in the specified file,
suitable to be used as a TypeName.

@param file   the file to reference
@param clazz  the class to reference
@return       the full name of the class
common-parent/codegen/src/main/java/com/speedment/common/codegen/constant/SimpleTypeUtil.java