void (@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) { final PsiElement position = parameters.getPosition(); if (!isInJavaContext(position)) { return; } if (METHOD_TYPE_ARGUMENT_PATTERN.accepts(position)) { addMethodHandleVariants(position, result); } else if (FIELD_TYPE_ARGUMENT_PATTERN.accepts(position)) { addFieldHandleVariants(position, result); } }