@Override
public Environment getEnvironment(IProject project) {
IPreferenceStore store = getPreferenceStore();
PreferencesSupport prefSupport = new PreferencesSupport(getPluginId(), store);
String executable = prefSupport.getPreferencesValue(getExecutableKey(), null, project);
String useProjectPhar = prefSupport.getPreferencesValue(getUseProjectKey(), null, project);
String systemPhar = prefSupport.getPreferencesValue(getScriptKey(), null, project);
if (executable == null || executable.isEmpty()) {
// the user has not set any preference for PHP executable yet,
// so try finding any PHP executable, e.g. contributed via the
// phpExe extension point