}
public String generateDoc(PsiElement element, PsiElement originalElement) {
if (!(element instanceof HPAbstractIdent))
return null;
HPAbstractIdent ident = (HPAbstractIdent) element;
TextRange range = ident.getTextRange();
PsiFile psiFile = element.getContainingFile();
VirtualFile file = psiFile.getVirtualFile();
if (file == null)
return null;
// todo: run in event-dispatch thread