void () { if (myProjectGenerator instanceof WebProjectTemplate) { getPeer().addSettingsListener(new ProjectGeneratorPeer.SettingsListener() { @Override public void stateChanged(boolean validSettings) { checkValid(); } }); } }