void (@NotNull CredentialsEditor<?> editor) { if (editor instanceof FormWithAlignableLabelsColumn) { for (JBLabel label : ((FormWithAlignableLabelsColumn)editor).getLabelsColumn()) { label.addAncestorListener(myLabelsColumnTracker); label.addComponentListener(myLabelsColumnTracker); } } }