String (@Nullable PsiElement element) { if (element == null) return null; PsiFile file = element.getContainingFile(); if (file != null) { VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile instanceof VirtualFilePathWrapper) return ((VirtualFilePathWrapper)virtualFile).getPresentablePath(); } return null; }