String (@Nullable PsiTypeElement element) { if (element != null) { PsiJavaCodeReferenceElement reference = element.getInnermostComponentReferenceElement(); if (reference != null) { return reference.getReferenceName(); } } return null; }