@Override
    public void deleteElement(@NotNull DataContext dataContext) {
      PsiElement[] selectedPsiElements = PlatformCoreDataKeys.PSI_ELEMENT_ARRAY.getData(dataContext);
      if (selectedPsiElements == null) return;
      List<PsiFile> psiFiles = ContainerUtil.findAll(selectedPsiElements, PsiFile.class);
      DeleteProvider delegate;
      if (!psiFiles.isEmpty()) {
        delegate = new ResourceBundleDeleteProvider();
      }
      else {
        IProperty[] properties = IProperty.ARRAY_KEY.getData(dataContext);
        if (properties != null && properties.length != 0) {
          delegate = new PropertiesDeleteProvider(((ResourceBundleEditor)getFileEditor()).getPropertiesInsertDeleteManager(), properties);
        }
        else {
          return;
        }
      }
      delegate.deleteElement(dataContext);
    }
@Override
    public void deleteElement(@NotNull DataContext dataContext)