String (Document document, @NotNull GradleVersion gradleVersion) { String groupId = getGroupId(document); String artifactId = getArtifactId(document); String version = getVersion(document); String scope = getScope(document, gradleVersion); String classifier = getClassifier(document); if (groupId.isEmpty() || artifactId.isEmpty() || version.isEmpty()) { return null; } return formatGradleDependency(groupId, artifactId, version, scope, classifier); }