diff --git a/topics/basics/plugin_structure/plugin_dependencies.md b/topics/basics/plugin_structure/plugin_dependencies.md
index 0c6c9bf79..5e3d32def 100644
--- a/topics/basics/plugin_structure/plugin_dependencies.md
+++ b/topics/basics/plugin_structure/plugin_dependencies.md
@@ -160,13 +160,18 @@ Declare additional `optional="true"` and `config-file` attribute pointing to [op
>
{style="note"}
-For example, if a plugin adds additional highlighting for Java and Kotlin files, use the following setup.
-The main plugin.xml will define an annotator for Java and specify an optional dependency on the Kotlin plugin (plugin ID `org.jetbrains.kotlin`):
+### Sample
+
+The plugin adds additional highlighting for Java and Kotlin files.
+The main plugin.xml defines a required dependency on the Java plugin (plugin ID `com.intellij.java`) and registers the corresponding `com.intellij.annotator` extension.
+Additionally, it specifies an optional dependency on the Kotlin plugin (plugin ID `org.jetbrains.kotlin`):
plugin.xml
```xml
...
+ com.intellij.java
+
org.jetbrains.kotlin
@@ -179,8 +184,8 @@ The main plugin.xml will define an annotator for Java and specify a
```
-Then create a file called myPluginId-withKotlin.xml, in the same directory as the main plugin.xml file.
-In that file, define an annotator for Kotlin:
+The configuration file myPluginId-withKotlin.xml is located in the same directory as the main plugin.xml file.
+In that file, the annotator extension for Kotlin is defined:
myPluginId-withKotlin.xml