@NotNull
  public static GroovyCodeStyleSettings getInstance(@NotNull Editor editor) {
    return CodeStyle.getSettings(editor).getCustomSettings(GroovyCodeStyleSettings.class);
  }
@NotNull
  public static GroovyCodeStyleSettings getInstance(@NotNull Editor editor)