void (JpsModule module) { for (JpsDependencyElement element : module.getDependenciesList().getDependencies()) { if (element instanceof JpsSdkDependency) return; } module.getDependenciesList().addSdkDependency(JpsJavaSdkType.INSTANCE); }