boolean (PsiType type1, PsiType type2) { if (type1 == type2) return true; if (type1 == null || !type1.equals(type2)) return false; return Objects.equals(type1.getCanonicalText(true), type2.getCanonicalText(true)); }