boolean (@Nullable Project project, @Nullable VirtualFile file) { if (project == null || project.isDefault()) return false; if (file == null || !file.isValid()) return false; if (OutsidersPsiFileSupport.isOutsiderFile(file)) return false; if (file.getUserData(TEMP_FILE_KEY) == Boolean.TRUE) return false; return true; }