@Override
  public List<CodeStylePropertyAccessor> getAdditionalAccessors(@NotNull Object codeStyleObject) {
    if (codeStyleObject instanceof GroovyCodeStyleSettings) {
      try {
        Field onDemandPackagesField = codeStyleObject.getClass().getField("PACKAGES_TO_USE_IMPORT_ON_DEMAND");
        return Collections.singletonList(new JavaPackageEntryTableAccessor(codeStyleObject, onDemandPackagesField) {
          @Override
          public boolean set(@NotNull List<String> extVal) {
            PackageEntryTable entryTable = fromExternal(extVal);
            if (entryTable != null) {
              ((GroovyCodeStyleSettings)codeStyleObject).getPackagesToUseImportOnDemand().copyFrom(entryTable);
              return true;
            }
            return false;
          }
        });
      }
      catch (NoSuchFieldException e) {
        // Ignore
      }
    }
    return super.getAdditionalAccessors(codeStyleObject);
  }
@Override
  public List<CodeStylePropertyAccessor> getAdditionalAccessors(@NotNull Object codeStyleObject)