boolean (int fileId) { if (idSet != null) { return idSet.contains(fileId); } if (fileIds != null) { return fileIds.get(fileId); } for (VirtualFile file : weirdFiles) { if (file instanceof VirtualFileWithId && ((VirtualFileWithId)file).getId() == fileId) { return true; } } return false; }