@Override
  public boolean isSaveRequired() {
    return isUnsaved() &&
           (!isNew() || myFileEditor instanceof TextEditor && ((TextEditor)myFileEditor).getEditor().getDocument().getTextLength() > 0);
  }
@Override
  public boolean isSaveRequired()