@Override
  protected @NotNull TextChunk @NotNull [] createTextChunks(@NotNull PsiElement element) {
    assert element instanceof PsiMethod;
    Project project = element.getProject();

    // EditorHighlighter requires VirtualFile, let's make sure it exists. Also, file.getText() is much cheaper with this.
    PsiJavaFile file = (PsiJavaFile)PsiFileFactory.getInstance(project).createFileFromText(
      "A.java", JavaLanguage.INSTANCE, "class A{" + element.getText() + "}");
    PsiMethod psiMethod = file.getClasses()[0].getMethods()[0];

    UsageInfo2UsageAdapter usageAdapter = new UsageInfo2UsageAdapter(new UsageInfo(psiMethod));
    TextRange range = psiMethod.getTextRange();
    PsiIdentifier identifier = psiMethod.getNameIdentifier();
    int startOffset = identifier != null ? identifier.getTextRange().getStartOffset() : range.getStartOffset();
    int endOffset = Math.min(psiMethod.getParameterList().getTextRange().getEndOffset(), range.getEndOffset());
    List<TextChunk> result = new ArrayList<>();
    ChunkExtractor.getExtractor(file).appendTextChunks(usageAdapter, file.getText(), startOffset, endOffset, false, result);
    return result.toArray(TextChunk.EMPTY_ARRAY);
  }
@Override
  protected @NotNull TextChunk @NotNull [] createTextChunks(@NotNull PsiElement element)