private @Nullable JavaElementArrangementEntry createNewEntry(@NotNull TextRange range,
                                                               @NotNull ArrangementSettingsToken type,
                                                               @Nullable String name) {
    if (!isWithinBounds(range)) {
      return null;
    }
    DefaultArrangementEntry current = getCurrent();
    JavaElementArrangementEntry entry;
    TextRange expandedRange = myDocument == null ? null : ArrangementUtil.expandToLineIfPossible(range, myDocument);
    TextRange rangeToUse = expandedRange == null ? range : expandedRange;
    entry = new JavaElementArrangementEntry(current, rangeToUse, type, name, true);
    registerEntry(entry);
    return entry;
  }
private @Nullable JavaElementArrangementEntry createNewEntry(@NotNull TextRange range,
                                                               @NotNull ArrangementSettingsToken type,
                                                               @Nullable String name)