I am trying to write my first IntelliJ plugin, and I'm finding it a very confusing process.
I have found and cloned a sample project with a tool window (https://github.com/JetBrains/intellij-sdk-code-samples/tree/main/tool_window), and I am now trying to add a Java class/package chooser (https://plugins.jetbrains.com/docs/intellij/file-and-class-choosers.html#class-and-package-choosers) to that window.
However, the class I want (PackageChooserDialog) is not resolved when I try to add it. According to https://plugins.jetbrains.com/docs/intellij/plugin-compatibility.html#modules-available-in-all-products it should be included in the 'com.intellij.modules.platform' dependency, which is already included in the <depends> tag in plugin.xml.
Why can't I access the PackageChooserDialog in my project?