change signature hierarchy: don't build children to check for leaf (IDEA-157682)

This commit is contained in:
Anna Kozlova
2016-06-22 15:24:15 +03:00
parent 47a64d8d4e
commit 4b7b6bf5f0
@@ -85,6 +85,14 @@ public abstract class MethodNodeBase<M extends PsiElement> extends CheckedTreeNo
return super.getChildCount();
}
@Override
public boolean isLeaf() {
if (children == null) {
return false;
}
return super.isLeaf();
}
@Override
public int getIndex(TreeNode aChild) {
buildChildren();