boolean (CodeStyleSettings settings) { TableCellEditor editor = myTreeTable.getCellEditor(); if (editor != null) { return true; // to allow stop editing in #apply } TreeModel treeModel = myTreeTable.getTree().getModel(); TreeNode root = (TreeNode)treeModel.getRoot(); if (isModified(root, settings)) { return true; } return false; }