boolean (@Nullable Object o, ProcessingContext context) { for (Class<? extends PsiElement> classAlternative : classAlternatives) { if (classAlternative.isInstance(o)) { return true; } } return false; }