code: @SuppressWarnings("unchecked")
      static ObjectProperty<Paint> Text_selectionFillProperty(Text text) {
          try {
              if (mText_selectionFillProperty == null) {
                  mText_selectionFillProperty = Text.class.getMethod(
                          isJava9orLater ? "selectionFillProperty" : "impl_selectionFillProperty");
              }
              return (ObjectProperty<Paint>) mText_selectionFillProperty.invoke(text);
          } catch(NoSuchMethodException | SecurityException | IllegalAccessException |
                  IllegalArgumentException | InvocationTargetException e) {
              e.printStackTrace();
              throw new Error(e);
          }
      }
docs: Java 8:  javafx.scene.text.Text.impl_selectionFillProperty()
  Java 9+: javafx.scene.text.Text.selectionFillProperty()