src/org/openstreetmap/josm/plugins/opendata/core/gui/ModulePreferencesModel.java
public void updateAvailableModules(Collection<ModuleInformation> fromModuleSite) {
        for (ModuleInformation other: fromModuleSite) {
            updateAvailableModule(other);
        }
        sort();
        filterDisplayedModules(filterExpression);
        Set<String> activeModules = new HashSet<>(getModules(Collections.emptyList()));
        for (ModuleInformation pi: availableModules) {
            if (selectedModulesMap.get(pi) == null) {
                if (activeModules.contains(pi.name)) {
                    selectedModulesMap.put(pi, true);
                }
            }
        }
        fireStateChanged();
    }
/**
     * Updates the list of module information objects with new information from
     * module update sites.
     *
     * @param fromModuleSite module information read from module update sites
     */
Updates the list of module information objects with new information from
module update sites.

@param fromModuleSite module information read from module update sites
Updates the list of module information objects with new information from module update sites . @param fromModuleSite module information read from module update sites
public void updateAvailableModules(Collection<ModuleInformation> fromModuleSite) {
        for (ModuleInformation other: fromModuleSite) {
            updateAvailableModule(other);
        }
        sort();
        filterDisplayedModules(filterExpression);
        Set<String> activeModules = new HashSet<>(getModules(Collections.emptyList()));
        for (ModuleInformation pi: availableModules) {
            if (selectedModulesMap.get(pi) == null) {
                if (activeModules.contains(pi.name)) {
                    selectedModulesMap.put(pi, true);
                }
            }
        }
        fireStateChanged();
    }
public void updateAvailableModules ( Collection < ModuleInformation > fromModuleSite ) { for ( ModuleInformation other : fromModuleSite ) { updateAvailableModule ( other ) ; } sort ( ) ; filterDisplayedModules ( filterExpression ) ; Set < String > activeModules = new HashSet < > ( getModules ( Collections . emptyList ( ) ) ) ; for ( ModuleInformation pi : availableModules ) { if ( selectedModulesMap . get ( pi ) == null ) { if ( activeModules . contains ( pi . name ) ) { selectedModulesMap . put ( pi , true ) ; } } } fireStateChanged ( ) ; }
Updates the list of module information objects with new information from
 module update sites.
Updates the list of module information objects with new information from module update sites .