List<ConfigurationErrorQuickFix> (ArtifactProblemQuickFix[] quickFixes) { final List<ConfigurationErrorQuickFix> result = new SmartList<>(); for (final ArtifactProblemQuickFix fix : quickFixes) { result.add(new ConfigurationErrorQuickFix(fix.getActionName()) { @Override public void performFix() { final ArtifactEditor editor = myContext.getOrCreateEditor(myOriginalArtifact); fix.performFix(((ArtifactEditorEx)editor).getContext()); } }); } return result; }