core/src/main/java/io/tracee/contextlogger/outputgenerator/writer/function/TypeProviderFunction.java
public boolean apply(final StringBuilder stringBuilder, final OutputStyle outputStyle, final OutputElement outputElement) {

        boolean result = false;

        if (outputElement != null) {

            if (OutputElementType.COLLECTION.equals(outputElement.getOutputElementType())) {
                result = handleCollectionType(stringBuilder, outputStyle, outputElement);
            } else if (OutputElementType.COMPLEX.equals(outputElement.getOutputElementType())) {

                if (TraceeContextLogAnnotationUtilities.getAnnotationFromType(outputElement.getEncapsulatedInstance()) != null) {
                    result = handleTraceeContextprovider(stringBuilder, outputStyle, outputElement);
                } else {
                    result = handleComplexType(stringBuilder, outputStyle, outputElement);
                }

            }

        }

        return result;
    }
public boolean apply(final StringBuilder stringBuilder, final OutputStyle outputStyle, final OutputElement outputElement) {

        boolean result = false;

        if (outputElement != null) {

            if (OutputElementType.COLLECTION.equals(outputElement.getOutputElementType())) {
                result = handleCollectionType(stringBuilder, outputStyle, outputElement);
            } else if (OutputElementType.COMPLEX.equals(outputElement.getOutputElementType())) {

                if (TraceeContextLogAnnotationUtilities.getAnnotationFromType(outputElement.getEncapsulatedInstance()) != null) {
                    result = handleTraceeContextprovider(stringBuilder, outputStyle, outputElement);
                } else {
                    result = handleComplexType(stringBuilder, outputStyle, outputElement);
                }

            }

        }

        return result;
    }
Write the type string to the Stringbuilder

@param stringBuilder the stringbuilder to write to
@param outputStyle   the output style to use
@param outputElement the output element to write the type string for.
@return true, if any output was written to the stringbuilder, otherwise false.