boolean (PsiType type, String fqn) { if (type instanceof PsiClassType) { final PsiClass resolved = ((PsiClassType)type).resolve(); return resolved != null && fqn.equals(resolved.getQualifiedName()); } return false; }