PsiAnnotationPattern (final ElementPattern<String> pattern) { return with(new PatternCondition<PsiAnnotation>("qName") { @Override public boolean accepts(@NotNull final PsiAnnotation psiAnnotation, final ProcessingContext context) { return pattern.accepts(psiAnnotation.getQualifiedName(), context); } }); }