prefer local variables over NULL_PSI_ELEMENT in smart completion

This commit is contained in:
peter
2017-06-07 13:35:28 +02:00
parent d937be6504
commit b8588d2006
4 changed files with 31 additions and 9 deletions
@@ -0,0 +1,14 @@
class Usage {
void foo(PsiMethod method) {
PsiUtil.ensureValid(<caret>);
}
}
class PsiUtil {
static final PsiElement NULL_PSI_ELEMENT;
static void ensureValid(PsiElement e) {}
}
interface PsiElement {}
interface PsiMethod extends PsiElement {}