void (boolean state) { PropertiesComponent propertiesComponent = PropertiesComponent.getInstance(myProject); if (Boolean.TRUE.toString().equals(propertiesComponent.getValue("GoToClass.toSaveIncludeLibraries"))){ propertiesComponent.setValue("GoToClass.includeLibraries", Boolean.toString(state)); } }