public static @NotNull ImageType from(boolean floating, boolean toolbarVisible, boolean selected, boolean nextSelected) {
    if (floating) {
      return selected ? ACTIVE_FLOATING : nextSelected ? NEXT_ACTIVE_FLOATING : INACTIVE_FLOATING;
    }
    else if (toolbarVisible) {
      return selected ? ACTIVE : nextSelected ? NEXT_ACTIVE : INACTIVE;
    }
    else {
      return selected ? ACTIVE_NO_TOOLBAR : nextSelected ? NEXT_ACTIVE_NO_TOOLBAR : INACTIVE_NO_TOOLBAR;
    }
  }
public static @NotNull ImageType from(boolean floating, boolean toolbarVisible, boolean selected, boolean nextSelected)