void () { for (int i = 0; i < myFiles.size(); i++) { VirtualFile file = myFiles.get(i); final Boolean viewer = myIsViewer.get(i); final EditorEx editor = myEditor.getTranslationEditors().get(file); if (editor != null) { editor.setViewer(viewer); } } }