boolean (@Nullable final Object o, final ProcessingContext context) { if (o instanceof PsiNewExpression) { PsiJavaCodeReferenceElement reference = ((PsiNewExpression)o).getClassOrAnonymousClassReference(); if (reference != null) { return ArrayUtil.contains(reference.getQualifiedName(), fqns); } } return false; }