void (@NotNull Project project, @NotNull VirtualFile file, @NotNull Consumer<ActionHandler> action) { final String javaErrorMessage = JavaProjectSdkSetupValidator.INSTANCE.getErrorMessage(project, file); if (javaErrorMessage != null) { action.consume(JavaProjectSdkSetupValidator.INSTANCE.getFixHandler(project, file)); return; } final Module module = ModuleUtilCore.findModuleForFile(file, project); final String moduleName = module != null && !module.isDisposed() ? module.getName() : null; ProjectSettingsService.getInstance(project).showModuleConfigurationDialog(moduleName, ClasspathEditor.getName()); }