private static boolean inFromImportParentheses(PsiElement statement, int offset) {
    if (!(statement instanceof PyAstFromImportStatement fromImportStatement)) {
      return false;
    }
    PsiElement leftParen = fromImportStatement.getLeftParen();
    if (leftParen != null && offset >= leftParen.getTextRange().getEndOffset()) {
      return true;
    }
    return false;
  }
private static boolean inFromImportParentheses(PsiElement statement, int offset)