boolean (@NotNull GroovyDslExecutor executor, GroovyClassDescriptor descriptor, final ProcessingContext ctx) { List<Pair<ContextFilter,Closure>> enhancers = executor.getEnhancers(); if (enhancers == null) { LOG.error("null enhancers"); return false; } for (Pair<ContextFilter, Closure> pair : enhancers) { if (pair.first.isApplicable(descriptor, ctx)) { return true; } } return false; }