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