boolean (Object object) { return object instanceof PsiVariable || object instanceof PsiExpression || // clone() is excluded to avoid weird chains suggestions like arr.stream<caret> -> Arrays.stream(arr.clone()) (object instanceof PsiMethod && !CLONE.methodMatches((PsiMethod)object)); }