TargetClassFilter (@Nullable PsiType psiType) { if (psiType == null || psiType instanceof PsiArrayType) { return TargetClassFilter.ALL; } PsiClass psiClass = PsiUtil.resolveClassInType(psiType); if (psiClass != null) { return createClassFilter(psiClass); } return new FQNameClassFilter(psiType.getCanonicalText()); }