void (@NotNull FilePath filePath, boolean isDirectory) { if (isDirectory) { setIcon(PlatformIcons.FOLDER_ICON); return; } Icon icon = FilePathIconProvider.EP_NAME.computeSafeIfAny(provider -> provider.getIcon(filePath, myProject)); if (icon != null) { setIcon(icon); return; } setIcon(VcsUtil.getIcon(myProject, filePath)); }