in packages/prettier-plugin-vertical-align/src/printer.ts [162:172]
function modifierLength(node: AstPath["node"]) {
return (
(node.optional ? "?".length : 0) +
(node.computed ? "[]".length : 0) +
(node.static ? "static ".length : 0) +
(node.accessibility ? node.accessibility.length + 1 : 0) +
(node.override ? "override ".length : 0) +
(node.declare ? "declare ".length : 0) +
(node.readonly ? "readonly ".length : 0)
);
}