boolean (PsiElement element) { if (element instanceof PsiWhiteSpace) { return false; } else if (element instanceof PsiJavaToken) { // do not filter out type keyword of new primitive arrays (e.g. int in new int[10]) return element instanceof PsiKeyword && PRIMITIVE_TYPES.contains(element.getText()) && element.getParent() instanceof PsiNewExpression; } return true; }