private static boolean isOnTheFly(@NotNull PyInspectionVisitor visitor) {
    final ProblemsHolder holder = visitor.getHolder();
    return holder != null && holder.isOnTheFly();
  }
private static boolean isOnTheFly(@NotNull PyInspectionVisitor visitor)