void (boolean state) { PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject); if (propertiesComponent.isTrueValue("GoToClass.toSaveIncludeLibraries")) { propertiesComponent.setValue("GoToFile.includeJavaFiles", Boolean.toString(state)); } }