InsertPathAction (JTextComponent textComponent) { Object property = textComponent.getClientProperty(INSERT_PATH_ACTION); if (!(property instanceof InsertPathAction)) return null; return (InsertPathAction)property; }