migrate-intellij-util
Installation
SKILL.md
Skill: API Migration to use com.intellij.util.* classes and methods
You are tasked with optimizing memory usage, consistency, and performance by migrating standard Java/Kotlin classes to IntelliJ's specialized com.intellij.util implementations.
Objective
Go read https://javadoc.jetbrains.net/teamcity/openapi/current/com/intellij/util/package-summary.html, and then optimize memory usage, consistency, and performance by migrating standard Java/Kotlin classes to IntelliJ's specialized com.intellij.util implementations.
Candidates for Migration
ArrayList->SmartList(for potentially empty/small lists)HashMap/ConcurrentHashMap->ContainerUtilmapsStringmanipulation ->StringUtil(e.g.,isEmpty,join,notNullize)Path/Filestring manipulation ->PathUtiljavax.swing.Timer->Alarm(for UI-related callbacks/debouncing)- Null checks ->
ObjectUtils(e.g.,doIfNotNull,coalesce) - Array resizing/merging ->
ArrayUtil