Self (@NonNls final String qualifiedName) { return with(new PatternCondition<T>("withAnnotation") { @Override public boolean accepts(@NotNull final T t, final ProcessingContext context) { final PsiModifierList modifierList = t.getModifierList(); return modifierList != null && modifierList.hasAnnotation(qualifiedName); } }); }