String () { final GrTypeDefinitionStub stub = getStub(); if (stub != null) { return stub.getQualifiedName(); } PsiElement parent = getParent(); if (parent instanceof GroovyFile) { String packageName = ((GroovyFile)parent).getPackageName(); return !packageName.isEmpty() ? packageName + "." + getName() : getName(); } final PsiClass containingClass = getContainingClass(); if (containingClass != null && containingClass.getQualifiedName() != null) { return containingClass.getQualifiedName() + "." + getName(); } return null; }