private static @Nullable String getTypeText(PsiElement element) {
    PsiTypeElement typeElement = PsiTreeUtil.getChildOfType(element, PsiTypeElement.class);
    PsiType type = typeElement != null ? typeElement.getType() : element instanceof PsiVariable ? ((PsiVariable)element).getType() : null;
    return getClassName(type);
  }
private static @Nullable String getTypeText(PsiElement element)