void () { PsiClass bClass = myFixture.addClass("package foo;\nimport bar.A;\npublic class B { public static final class C extends A {} }"); myFixture.configureByText("A.java", "package bar;\n import foo.B;\npublic sealed class A permits <caret>B.C {}"); invokeFix("Move to package 'bar'"); assertEquals("package bar;\nimport bar.A;\npublic class B { public static final class C extends A {} }", bClass.getContainingFile().getText()); }