boolean (PsiElement element) { if (element == null || !element.isValid()) { return false; } VirtualFile file = PsiUtilCore.getVirtualFile(element.getNavigationElement()); return file != null && file.isValid() && !file.is(VFileProperty.SPECIAL) && !VfsUtilCore.isBrokenLink(file); }