boolean () { if (myVariables.size() < 2) return false; int firstVarArrayDimensions = myVariables.get(0).getType().getArrayDimensions(); for (int i = 1; i < myVariables.size(); i++) { PsiVariable nextVar = myVariables.get(i); if (firstVarArrayDimensions != nextVar.getType().getArrayDimensions()) return false; } return true; }