class KotlinCodeVerifier implements CodeVerifier {

  @Override
  public boolean containsCode(String content) {
    int words = content.trim().split("\\w+").length;
    if (words < 2 || isKDoc(content)) {
      return false;
    }
    try {
      String wrappedContent = "fun function () { " + content + " }";
      KotlinConverter.KotlinTree kotlinTree = new KotlinConverter.KotlinTree(wrappedContent);
      return !isSimpleExpression(kotlinTree.psiFile);
    } catch (ParseException e) {
      // do nothing
    }
    return false;
  }

}