GrAnnotationPattern (@NotNull final String qname) { return with(new PatternCondition<>("withQualifiedName") { @Override public boolean accepts(@NotNull GrAnnotation annotation, ProcessingContext context) { return qname.equals(annotation.getQualifiedName()); } }); }