boolean (@NotNull PyTargetExpression target) { String typeHintText = ""; PyAnnotation annotation = target.getAnnotation(); if (annotation != null) { PyExpression value = annotation.getValue(); if (value != null) { typeHintText = value.getText(); } } else { typeHintText = StringUtil.notNullize(target.getTypeCommentAnnotation()); } return typeHintText.equals("TypeAlias") || typeHintText.endsWith(".TypeAlias"); }