void () { if (!UpdateSettings.getInstance().isCheckNeeded()) { return; } PropertiesComponent properties = PropertiesComponent.getInstance(); BuildNumber newBuildForUpdate; try { newBuildForUpdate = BuildNumber.fromString(properties.getValue(NEXT_RUN_KEY_BUILD)); } catch (Exception ignore) { return; } if (newBuildForUpdate != null) { if (newBuildForUpdate.compareTo(ApplicationInfo.getInstance().getBuild()) > 0) { myNextRunPlatformUpdateVersion = properties.getValue(NEXT_RUN_KEY_VERSION); if (myNextRunPlatformUpdateVersion != null) { myNewPlatformUpdate = true; updateState(); } else { properties.unsetValue(NEXT_RUN_KEY_BUILD); properties.unsetValue(NEXT_RUN_KEY_VERSION); } } else { properties.unsetValue(NEXT_RUN_KEY_BUILD); properties.unsetValue(NEXT_RUN_KEY_VERSION); } } }