@Override
      public void addCompletions(final @NotNull CompletionParameters parameters,
                                 final @NotNull ProcessingContext context,
                                 final @NotNull CompletionResultSet result) {
        final PsiElement element = parameters.getPosition();
        final Set<PsiClass> throwsSet = new HashSet<>();
        final PsiMethod method = PsiTreeUtil.getContextOfType(element, PsiMethod.class, true);
        if (method != null) {
          for (PsiClassType ref : method.getThrowsList().getReferencedTypes()) {
            final PsiClass exception = ref.resolve();
            if (exception != null && throwsSet.add(exception)) {
              result.addElement(
                TailTypeDecorator.withTail(new JavaPsiClassReferenceElement(exception), TailTypes.humbleSpaceBeforeWordType()));
            }
          }
        }
      }
@Override
      public void addCompletions(final @NotNull CompletionParameters parameters,
                                 final @NotNull ProcessingContext context,
                                 final @NotNull CompletionResultSet result)