boolean (PsiFileSystemItem file) { VirtualFile vFile = PsiUtilCore.getVirtualFile(file); vFile = vFile == null ? null : BackedVirtualFile.getOriginFileIfBacked(vFile); if (vFile == null) { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Can NOT select " + file + " because its virtual file is null"); } return false; } else if (!vFile.isValid()) { if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) { SelectInProjectViewImplKt.getLOG().debug("Can NOT select " + file + " because its virtual file " + vFile + " is invalid"); } return false; } return canBeSelectedInProjectView(myProject, vFile); }