boolean (final @Nullable Object o, final ProcessingContext context) { return filter == null || o != null && filter.isClassAcceptable(o.getClass()) && filter.isAcceptable(o, o instanceof PsiElement ? (PsiElement)o : null); }