void () { useStandardProviders(); myCommander.enterElementInActivePanel(getContentDirectory()); checkListInActivePanel(""" [ .. ] PsiDirectory: src """); myCommander.switchActivePanel(); myCommander.enterElementInActivePanel(getPackageDirectory()); checkListInActivePanel( """ [ .. ] Class1 Class2.java Class4.java Form1 Form1.form Form2.form """); CommandProcessor.getInstance().executeCommand(myProject, () -> ApplicationManager.getApplication().runWriteAction(() -> { try { findClassInDirectory("Class1").setName("Class1_renamed"); } catch (IncorrectOperationException e) { TestCase.fail(); } }), null, null); checkListInActivePanel( """ [ .. ] Class1_renamed Class2.java Class4.java Form1 Form1.form Form2.form """); }