boolean (final PropertiesFile bundle, final String name, final String value, final PsiFile formFile) { final ReadonlyStatusHandler.OperationStatus operationStatus = ReadonlyStatusHandler.getInstance(bundle.getProject()).ensureFilesWritable(Collections.singletonList(bundle.getVirtualFile())); if (operationStatus.hasReadonlyFiles()) { return false; } CommandProcessor.getInstance().executeCommand( bundle.getProject(), () -> { UndoUtil.markPsiFileForUndo(formFile); ApplicationManager.getApplication().runWriteAction(() -> { try { bundle.addProperty(name, value); } catch (IncorrectOperationException e1) { LOG.error(e1); } }); }, UIDesignerBundle.message("command.create.property"), null); return true; }