List<IntentionAction> () { if (myIntentionsDisabled) { return Collections.emptyList(); } checkForDuplicates(); List<IntentionAction> list = new ArrayList<>(myActions.size()); IntentionManagerSettings settings = IntentionManagerSettings.getInstance(); for (IntentionAction action : myActions) { if (settings.isEnabled(action)) { list.add(action); } } return list; }