void () { final int size = myOptionsTable.getModel().getRowCount(); final List<String> newScopeOrder = new ArrayList<>(); for (int i = 0; i < size; i++) { final NamedScope namedScope = myOptionsTable.getScopeAt(i); assert namedScope != null; newScopeOrder.add(namedScope.getScopeId()); } if (!newScopeOrder.equals(myInspectionProfile.getScopesOrder())) { myInspectionProfile.setScopesOrder(newScopeOrder); } super.doOKAction(); }