private static @Nullable ASTNode getPrevElementType(ASTNode child) {
    return FormatterUtil.getPreviousNonWhitespaceLeaf(child);
  }
private static @Nullable ASTNode getPrevElementType(ASTNode child)