void () { final String libRootPath = getTestDataPath() + "/" + getTestName(false); final VirtualFile libRoot = StandardFileSystems.local().findFileByPath(libRootPath); runWithAdditionalClassEntryInSdkRoots(libRoot, () -> { VirtualFile libPlainDirectory = libRoot.findChild("plainDirectory"); Presentation presentation = doLaunchAction(libPlainDirectory); assertTrue(presentation.isVisible()); assertFalse(presentation.isEnabled()); }); }