List<AnAction> () { List<AnAction> group = new ArrayList<>(); if (!isReadOnly()) { group.add(new MyToggleExpandByDefaultAction()); group.add(myEditorSettingsAction); group.add(Separator.getInstance()); group.add(new ShowDiffWithLocalAction()); group.add(new ApplyNonConflictsAction()); } return group; }