boolean (PsiElement e) { if (e instanceof PsiFileSystemItem) { VirtualFile file = ((PsiFileSystemItem)e).getVirtualFile(); if (file != null && file.isInLocalFileSystem()) return true; } return false; }