public void update(AnActionEvent e) {
super.update(e);
e.getPresentation().setIcon(ICON);
String title = "Show in Reveal";
XCBuildConfiguration xcBuildConfiguration = myConfiguration.getConfiguration();
<BUG>AppleSdk sdk = xcBuildConfiguration == null ? null : xcBuildConfiguration.getBaseSdk();
File appBundle = Reveal.getDefaultRevealApplicationBundle();
if (appBundle.exists() == false) return;
File lib = Reveal.getRevealLib(appBundle, sdk);
boolean compatible = Reveal.isCompatible(appBundle);
e.getPresentation().setEnabled(lib != null</BUG>
&& compatible

public void update(AnActionEvent e) {
super.update(e);
e.getPresentation().setIcon(ICON);
String title = "Show in Reveal";
XCBuildConfiguration xcBuildConfiguration = myConfiguration.getConfiguration();
AppleSdk sdk = xcBuildConfiguration == null ? null : xcBuildConfiguration.getBaseSdk();
File lib = null;
boolean compatible = false;
File appBundle = Reveal.getDefaultRevealApplicationBundle();
if (appBundle.exists()) {
lib = Reveal.getRevealLib(appBundle, sdk);
compatible = Reveal.isCompatible(appBundle);
e.getPresentation().setEnabled(lib != null
&& compatible
