private static int startLine(Editor editor, @NotNull ASTNode psiElement) {
    return editor.getDocument().getLineNumber(psiElement.getTextRange().getStartOffset());
  }
private static int startLine(Editor editor, @NotNull ASTNode psiElement)