@Override
    public boolean canClose(final String inputString) {
      RenameProcessor renameProcessor = null;
      for (final PsiElement psiElement : myPsiElements) {
        assert psiElement instanceof PsiNamedElement;
        final String oldName = ((PsiNamedElement)psiElement).getName();
        assert oldName != null;
        final String newName =
          oldName.substring(0, mySectionPosition) + inputString + oldName.substring(mySectionPosition + mySection.length());
        if (renameProcessor == null) {
          renameProcessor = new RenameProcessor(myProject, psiElement, newName, false, false);
        }
        else {
          renameProcessor.addElement(psiElement, newName);
        }
      }
      assert renameProcessor != null;
      renameProcessor.setCommandName(PropertiesBundle.message("rename.resource.bundle.section.dialog.title"));
      renameProcessor.doRun();
      return true;
    }
@Override
    public boolean canClose(final String inputString)