Icon () { if (myIcon != null) { return myIcon; } if (myIconPath != null && new File(FileUtil.toSystemDependentName(myIconPath)).exists()) { Image image = null; try { image = ImageLoader.loadFromStream(VfsUtilCore.convertToURL(VfsUtil.pathToUrl(myIconPath)).openStream()); } catch (IOException e) { LOG.debug(e); } if (image != null){ return new JBImageIcon(image); } } //return IconLoader.getIcon("/ant/filter.png"); return null; }