/*
 * Copyright 2017 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
package io.flutter.view;

import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.Condition;
import io.flutter.utils.FlutterModuleUtils;

public class FlutterViewCondition implements Condition<Project> {
  @Override
  public boolean value(Project project) {
    return FlutterModuleUtils.hasFlutterModule(project);
  }
}

@@ -456,16 +456,36 @@
  return 
+project != null && (
 FlutterM
@@ -520,16 +520,70 @@
 project)
+ %7C%7C FlutterModuleUtils.isFlutterBazelProject(project))
 ;%0A  %7D%0A%7D%0A

Update FlutterViewCondition to be bazel project aware. (#1612)