private static boolean processIfInForeignLanguage(@NotNull JavaSliceBuilder builder,
                                                    @NotNull Processor<? super SliceUsage> processor,
                                                    @NotNull PsiElement foreignElement) {
    PsiFile file = foreignElement.getContainingFile();
    if (file != null && file.getLanguage() != JavaLanguage.INSTANCE) {
      // show foreign language usage as leaf to warn about possible (but unknown to us) flow.
      return builder.process(foreignElement, processor);
    }
    return true;
  }
private static boolean processIfInForeignLanguage(@NotNull JavaSliceBuilder builder,
                                                    @NotNull Processor<? super SliceUsage> processor,
                                                    @NotNull PsiElement foreignElement)