@Override
  public void beforeCompletion(@NotNull CompletionInitializationContext context) {
    final PsiFile file = context.getFile();
    PsiElement element = file.findElementAt(context.getStartOffset());
    if (element instanceof PsiWhiteSpace &&
        element.textContains('\n') &&
        element.getTextRange().getStartOffset() == context.getStartOffset()) {
      context.setReplacementOffset(context.getStartOffset());
    }
  }
@Override
  public void beforeCompletion(@NotNull CompletionInitializationContext context)