Use FileUtils.getSmartFileExtension if possible
Use file-code icon