String (final SourcePosition position) { return ReadAction.compute(()->{ GroovyPsiElement sourceImage = findReferenceTypeSourceImage(position); if (sourceImage instanceof GrTypeDefinition) { return getClassNameForJvm((GrTypeDefinition)sourceImage); } else if (sourceImage == null) { return getScriptQualifiedName(position); } return null; }); }