private boolean canChangeAnnouncement(LegionMember legionMember,String announcement){
  return legionMember.hasRights(LegionPermissionsMask.EDIT) && (announcement.isEmpty() || isValidAnnouncement(announcement));
}

private boolean canChangeAnnouncement ( LegionMember legionMember , String announcement ) { return legionMember . hasRights ( LegionPermissionsMask . EDIT ) && ( announcement . isEmpty ( ) || isValidAnnouncement ( announcement ) ) ; }
this method checks all restrictions for changing announcements
