FileEditorState (@NotNull final FileEditorStateLevel ignored) { final Document document = FileDocumentManager.getInstance().getCachedDocument(myFile); long modificationStamp = document != null ? document.getModificationStamp() : myFile.getModificationStamp(); final ArrayList<RadComponent> selection = FormEditingUtil.getSelectedComponents(myEditor); final String[] ids = new String[selection.size()]; for (int i = ids.length - 1; i >= 0; i--) { ids[i] = selection.get(i).getId(); } return new MyEditorState(modificationStamp, ids); }