private static SimpleTextCellAppearance forInvalidVirtualFilePointer(VirtualFilePointer filePointer) {
return SimpleTextCellAppearance.invalid(filePointer.getPresentableUrl(), INVALID_ICON);
}
private static CellAppearance forValidVirtualFile(VirtualFile virtualFile) {
final VirtualFileSystem fileSystem = virtualFile.getFileSystem();
if (fileSystem.getProtocol().equals(JarFileSystem.PROTOCOL)) {
return new JarSubfileCellAppearance(virtualFile);
}
if (fileSystem instanceof HttpFileSystem) {
return new HttpUrlCellAppearance(virtualFile);
}