@Nullable
  @Override
  public Language getLanguage(@NotNull XmlText xmlText, @NotNull MavenDomConfiguration configuration) {
    // Parameter 'source' of gmaven-plugin can be a peace of groovy code or file path or URL.

    String text = xmlText.getText();

    if (text.indexOf('\n') >= 0) { // URL or file path can not be multiline so it's a groovy code
      return GroovyLanguage.INSTANCE;
    }
    if (text.indexOf('(') >= 0) { // URL or file path hardly contains '(', but code usually contain '('
      return GroovyLanguage.INSTANCE;
    }

    return null;
  }
@Nullable
  @Override
  public Language getLanguage(@NotNull XmlText xmlText, @NotNull MavenDomConfiguration configuration)