void () { doTest(); String message = InspectionGadgetsBundle.message("replace.inheritance.with.delegation.quickfix"); final IntentionAction intention = myFixture.getAvailableIntention(message); assertNotNull(intention); String text = myFixture.getIntentionPreviewText(intention); assertEquals(""" package com.siyeh.igtest.inheritance.extends_concrete_collection; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.Map; class ExtendsConcreteCollection extends ArrayList { } class MyMap extends LinkedHashMap<String, String> { @Override protected boolean removeEldestEntry(Map.Entry<String, String> eldest) { return true; } } class MyDeque { private final ArrayDeque arrayDeque = new ArrayDeque(); }""", text); }