private static boolean isOnDifferentLine(ASTNode first, ASTNode second, Document document) {
    return document.getLineNumber(first.getStartOffset()) != document.getLineNumber(second.getStartOffset());
  }
private static boolean isOnDifferentLine(ASTNode first, ASTNode second, Document document)