@Override public IType getEnclosingNonBlockType() { ICompilableTypeInternal type = getEnclosingType(); while (type instanceof IBlockClassInternal) { type = type.getEnclosingType(); } return type.getEnclosingNonBlockType(); }