void (KeyEvent e) { if (editor.isViewer()) { editor.setViewer(ReadonlyStatusHandler.getInstance(myProject) .ensureFilesWritable(Collections.singletonList(propertiesFile.getVirtualFile())).hasReadonlyFiles()); } }