private static boolean needToForceReformat(ASTNode parent, ASTNode first, ASTNode last) {
    return parent == null || first.getStartOffset() != parent.getStartOffset() ||
           parent.getText().trim().length() == getTrimmedTextLength(first, last) &&
           needToForceReformat(parent.getTreeParent(), parent, parent);
  }
private static boolean needToForceReformat(ASTNode parent, ASTNode first, ASTNode last)