String (final SourcePosition position) { return ReadAction.compute(()->{ PsiElement element = findElementAt(position); if (element == null) return null; PsiElement sourceImage = PsiTreeUtil.getParentOfType(element, GrClosableBlock.class, GrTypeDefinition.class, PsiClassImpl.class); if (sourceImage instanceof PsiClass) { return getClassNameForJvm((PsiClass)sourceImage); } return null; }); }