code: private <T> List<Class<?>> filter(List<Class<?>> enabledClasses, List<Class<?>> globallyEnabledClasses, LogMessageCallback logMessageCallback,
              BeanDeployment deployment) {
          for (Iterator<Class<?>> iterator = enabledClasses.iterator(); iterator.hasNext(); ) {
              Class<?> enabledClass = iterator.next();
              if (globallyEnabledClasses.contains(enabledClass)) {
                  logMessageCallback.log(enabledClass, deployment.getBeanDeploymentArchive().getId());
                  iterator.remove();
              }
          }
          return enabledClasses;
      }
docs: Filter out interceptors and decorators which are also enabled globally.
  
  @param enabledClasses
  @param globallyEnabledClasses
  @param logMessageCallback
  @param deployment
  @return the filtered list