intellij-plugin-structure/structure-fleet/src/main/kotlin/com/jetbrains/plugin/structure/fleet/FleetPluginManager.kt [66:80]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return createPlugin(descriptorFile.readText(), pluginDirectory) } private fun loadIconFromDir(pluginDirectory: Path): List = IconTheme.values().mapNotNull { theme -> val iconEntryName = getIconFileName(theme) val iconPath = pluginDirectory.resolve(iconEntryName) if (iconPath.exists()) { PluginIcon(theme, iconPath.readBytes(), iconEntryName) } else { null } } private fun getIconFileName(iconTheme: IconTheme) = "pluginIcon${iconTheme.suffix}.svg" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - intellij-plugin-structure/structure-toolbox/src/main/kotlin/com/jetbrains/plugin/structure/toolbox/ToolboxPluginManager.kt [65:79]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - return createPlugin(descriptorFile.readText(), pluginDirectory) } private fun loadIconFromDir(pluginDirectory: Path): List = IconTheme.values().mapNotNull { theme -> val iconEntryName = getIconFileName(theme) val iconPath = pluginDirectory.resolve(iconEntryName) if (iconPath.exists()) { PluginIcon(theme, iconPath.readBytes(), iconEntryName) } else { null } } private fun getIconFileName(iconTheme: IconTheme) = "pluginIcon${iconTheme.suffix}.svg" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -