String (@NotNull String mavenDependency, @NotNull GradleVersion gradleVersion) { try { DocumentBuilder builder = JavaXmlDocumentKt.createDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(mavenDependency))); String gradleDependency = extractGradleDependency(document, gradleVersion); return gradleDependency != null ? gradleDependency : mavenDependency; } catch (SAXException | IOException ignored) { } return mavenDependency; }