Couple<String> (@NotNull VirtualFile file, Project project) { ImageInfo imageInfo = ImageInfoIndex.getInfo(file, project); return imageInfo != null ? Couple.of(file.getName(), String.format("%sx%s", imageInfo.width, imageInfo.height)) : null; }