core/src/main/java/io/tracee/contextlogger/outputgenerator/predicates/IsTraceeContextProviderPrimitiveTypePredicate.java
protected boolean hasTraceeContextProviderPrimitiveTypeAnnotation(final Object instance) {

        if (instance == null) {
            return false;
        }

        TraceeContextProviderPrimitiveType annotation = TraceeContextLogAnnotationUtilities.getAnnotationFromType(instance, TraceeContextProviderPrimitiveType.class);
        return annotation != null;

    }
protected boolean hasTraceeContextProviderPrimitiveTypeAnnotation(final Object instance) {

        if (instance == null) {
            return false;
        }

        TraceeContextProviderPrimitiveType annotation = TraceeContextLogAnnotationUtilities.getAnnotationFromType(instance, TraceeContextProviderPrimitiveType.class);
        return annotation != null;

    }
Checks whether the passed instance type is annotated with the {@link io.tracee.contextlogger.contextprovider.api.TraceeContextProvider} annotation.

@param instance the instance to check
@return true, if the passed instance's type is annotated with the {@link io.tracee.contextlogger.contextprovider.api.TraceeContextProvider} annotation,
otherwise false