GradleVersion (@NotNull String gradleVersion) { try { return GradleVersion.version(gradleVersion); } catch (IllegalArgumentException e) { // GradleVersion.version(gradleVersion) might throw exception for custom Gradle versions // https://youtrack.jetbrains.com/issue/IDEA-216892 return null; } }