@Nullable
  private static PsiClass findTargetClassInRange(@Nullable PsiFile file, @NotNull TextRange range) {
    return file != null ? CodeInsightUtil.findElementInRange(file, range.getStartOffset(), range.getEndOffset(), PsiClass.class) : null;
  }
@Nullable
  private static PsiClass findTargetClassInRange(@Nullable PsiFile file, @NotNull TextRange range)