@Override
  public void afterMove(@NotNull Editor editor, @NotNull PsiFile file, @NotNull MoveInfo info, boolean down) {
    super.afterMove(editor, file, info, down);
    if (moveEnumConstant) {
      final Document document = editor.getDocument();
      final CharSequence cs = document.getCharsSequence();
      int end1 = info.range1.getEndOffset();
      char c1 = cs.charAt(--end1);
      while (Character.isWhitespace(c1)) {
        c1 = cs.charAt(--end1);
      }
      int end2 = info.range2.getEndOffset();
      char c2 = cs.charAt(--end2);
      while (Character.isWhitespace(c2)) {
        c2 = cs.charAt(--end2);
      }
      if (c1 == c2 || !contains(info.range1, end1) || !contains(info.range2, end2)) {
        return;
      }
      if (c1 == ',' || c1 == ';') {
        document.deleteString(end1, end1 + 1);
        if (end1 < end2) {
          end1--;
          end2--;
        }
        document.insertString(end2 + 1, String.valueOf(c1));
      }
      if (c2 == ',' || c2 == ';'){
        document.deleteString(end2, end2 + 1);
        if (end2 < end1) end1--;
        document.insertString(end1 + 1, String.valueOf(c2));
      }
    }
  }
@Override
  public void afterMove(@NotNull Editor editor, @NotNull PsiFile file, @NotNull MoveInfo info, boolean down)