private boolean needToCheck(GrReferenceElement<?> ref, boolean isCompileStatic) {
    if (isCompileStatic) return true;
    if (!myInspectionEnabled) return false;
    if (GroovyAccessibilityInspection.isSuppressed(ref)) return false;

    return true;
  }
private boolean needToCheck(GrReferenceElement<?> ref, boolean isCompileStatic)