From 95a38b49ef99a0a3fe1af7ae5b00cb2e625d8f60 Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Sun, 5 Oct 2025 17:44:53 +0200 Subject: [PATCH] nullability GitOrigin-RevId: 5446c0eabf80ce7d5ffec11f800f3991552409d3 --- .../completion/CodeCompletionHandlerBase.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java b/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java index 9e769326c802..9f70215e5778 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/completion/CodeCompletionHandlerBase.java @@ -417,9 +417,9 @@ public class CodeCompletionHandlerBase { } } - private AutoCompletionDecision shouldAutoComplete(@NotNull CompletionProgressIndicator indicator, - @NotNull List items, - @NotNull CompletionParameters parameters) { + private @NotNull AutoCompletionDecision shouldAutoComplete(@NotNull CompletionProgressIndicator indicator, + @NotNull List items, + @NotNull CompletionParameters parameters) { if (!invokedExplicitly) { return AutoCompletionDecision.SHOW_LOOKUP; } @@ -662,7 +662,7 @@ public class CodeCompletionHandlerBase { return currentContext; } - private static void checkPsiTextConsistency(CompletionProcessEx indicator) { + private static void checkPsiTextConsistency(@NotNull CompletionProcessEx indicator) { PsiFile psiFile = PsiUtilBase.getPsiFileInEditor(InjectedLanguageEditorUtil.getTopLevelEditor(indicator.getEditor()), indicator.getProject()); if (psiFile != null) { if (Registry.is("ide.check.stub.text.consistency") || @@ -832,7 +832,7 @@ public class CodeCompletionHandlerBase { caret.putUserData(CARET_PROCESSED, Boolean.TRUE); } - private static Caret getNextCaretToProcess(@NotNull Editor editor) { + private static @Nullable Caret getNextCaretToProcess(@NotNull Editor editor) { for (Caret caret : editor.getCaretModel().getAllCarets()) { if (caret.getUserData(CARET_PROCESSED) == null) { return caret;