void (final VirtualFile virtualFile, final IconDescriptor descriptor) { if (virtualFile != null) { try { descriptor.setIcon(new ImageIcon(virtualFile.contentsToByteArray())); } catch (Exception e1) { descriptor.setIcon(null); } } }