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

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

        TraceeContextProvider annotation = TraceeContextLogAnnotationUtilities.getAnnotationFromType(instance);
        return annotation != null;

    }
protected boolean hasTraceeContextProviderAnnotation(final Object instance) {

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

        TraceeContextProvider annotation = TraceeContextLogAnnotationUtilities.getAnnotationFromType(instance);
        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