boolean (@Nullable RunConfiguration configuration, @Nullable ExecutionTarget target) { if (configuration == null || target == null) { return false; } else { return getInstance(configuration.getProject()).doCanRun(configuration, target); } }