@Override protected void doOKAction() {
    if (myForm.myRbResourceBundle.isSelected()) {
      final StringDescriptor descriptor = getDescriptor();
      if (descriptor != null && !descriptor.getKey().isEmpty()) {
        final String value = myForm.myTfRbValue.getText();
        final PropertiesFile propFile = getPropertiesFile(descriptor);
        try (AccessToken ignore = SlowOperations.knownIssue("IDEA-307701, EA-687662")) {
          if (propFile != null && propFile.findPropertyByKey(descriptor.getKey()) == null) {
            saveCreatedProperty(propFile, descriptor.getKey(), value, myEditor.getPsiFile());
          }
          else {
            final String newKeyName = saveModifiedPropertyValue(myEditor.getModule(), descriptor, myLocale, value, myEditor.getPsiFile());
            if (newKeyName != null) {
              myForm.myTfKey.setText(newKeyName);
            }
          }
        }
      }
    }
    super.doOKAction();
  }
@Override protected void doOKAction()