Ref<PyType> (@NotNull PsiElement resolved) { if (resolved instanceof PyQualifiedNameOwner) { String qualifiedName = ((PyQualifiedNameOwner)resolved).getQualifiedName(); if (TYPE_ALIAS.equals(qualifiedName) || TYPE_ALIAS_EXT.equals(qualifiedName)) { return Ref.create(); } } return null; }