String (final Object element) { if (element instanceof Form) { final PsiFile[] psiFiles = ((Form)element).getFormFiles(); VirtualFile vFile = null; if (psiFiles.length > 0) { vFile = psiFiles [0].getVirtualFile(); } if (vFile != null) { return vFile.getPresentableUrl(); } } return null; }