Icon (@NotNull Project project, @NotNull VirtualFile file) { if (file.isDirectory()) return null; Icon icon = ObjectUtils.notNull(super.substituteIcon(project, file), AllIcons.FileTypes.Text); return new ScratchFileTypeIcon(icon); }